reposets 0.4.1 → 0.4.2
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/README.md +15 -14
- package/bin/reposets.d.ts +1 -0
- package/bin/reposets.js +25 -507
- package/cli/commands/credentials.js +74 -0
- package/cli/commands/doctor.js +154 -0
- package/cli/commands/init.js +147 -0
- package/cli/commands/list.js +49 -0
- package/cli/commands/sync.js +70 -0
- package/cli/commands/validate.js +53 -0
- package/errors.js +12 -0
- package/index.d.ts +1750 -1840
- package/index.js +19 -2
- package/lib/crypto.js +27 -0
- package/package.json +61 -73
- package/schemas/common.js +130 -0
- package/schemas/config.js +469 -0
- package/schemas/credentials.js +78 -0
- package/schemas/environment.js +70 -0
- package/schemas/ruleset.js +545 -0
- package/services/ConfigFiles.js +119 -0
- package/services/CredentialResolver.js +40 -0
- package/services/GitHubClient.js +875 -0
- package/services/OnePasswordClient.js +30 -0
- package/services/SyncEngine.js +580 -0
- package/services/SyncLogger.js +106 -0
- package/tsdoc-metadata.json +11 -11
- package/500.js +0 -3354
package/index.d.ts
CHANGED
|
@@ -1,1840 +1,1750 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
}]
|
|
191
|
-
|
|
192
|
-
}>;
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
}>,
|
|
196
|
-
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
default: () => {
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
}
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
}
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
}
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
}
|
|
840
|
-
}
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
}
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
readonly
|
|
881
|
-
|
|
882
|
-
readonly
|
|
883
|
-
readonly
|
|
884
|
-
readonly
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
readonly
|
|
890
|
-
readonly
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
readonly
|
|
896
|
-
readonly
|
|
897
|
-
readonly
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
readonly
|
|
902
|
-
readonly
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
readonly
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
readonly
|
|
912
|
-
readonly
|
|
913
|
-
readonly
|
|
914
|
-
readonly
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
readonly
|
|
918
|
-
readonly
|
|
919
|
-
readonly
|
|
920
|
-
|
|
921
|
-
};
|
|
922
|
-
}
|
|
923
|
-
|
|
924
|
-
readonly
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
readonly
|
|
929
|
-
readonly
|
|
930
|
-
readonly
|
|
931
|
-
readonly
|
|
932
|
-
|
|
933
|
-
readonly
|
|
934
|
-
readonly
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
readonly
|
|
938
|
-
readonly
|
|
939
|
-
readonly
|
|
940
|
-
readonly
|
|
941
|
-
|
|
942
|
-
readonly
|
|
943
|
-
readonly
|
|
944
|
-
readonly
|
|
945
|
-
readonly
|
|
946
|
-
readonly
|
|
947
|
-
readonly
|
|
948
|
-
readonly
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
}[];
|
|
952
|
-
} | undefined;
|
|
953
|
-
readonly
|
|
954
|
-
readonly
|
|
955
|
-
readonly
|
|
956
|
-
readonly
|
|
957
|
-
readonly
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
readonly
|
|
961
|
-
|
|
962
|
-
readonly
|
|
963
|
-
readonly
|
|
964
|
-
readonly
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
readonly
|
|
969
|
-
readonly
|
|
970
|
-
readonly
|
|
971
|
-
|
|
972
|
-
readonly
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
readonly
|
|
978
|
-
readonly
|
|
979
|
-
readonly
|
|
980
|
-
readonly
|
|
981
|
-
readonly
|
|
982
|
-
|
|
983
|
-
readonly
|
|
984
|
-
|
|
985
|
-
readonly
|
|
986
|
-
|
|
987
|
-
readonly
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
readonly
|
|
991
|
-
readonly
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
readonly
|
|
995
|
-
readonly
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
readonly
|
|
1001
|
-
readonly
|
|
1002
|
-
readonly
|
|
1003
|
-
readonly
|
|
1004
|
-
readonly
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
readonly
|
|
1008
|
-
|
|
1009
|
-
readonly
|
|
1010
|
-
readonly
|
|
1011
|
-
|
|
1012
|
-
readonly
|
|
1013
|
-
readonly
|
|
1014
|
-
|
|
1015
|
-
readonly
|
|
1016
|
-
readonly
|
|
1017
|
-
|
|
1018
|
-
readonly
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
readonly
|
|
1023
|
-
readonly
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
readonly
|
|
1029
|
-
readonly
|
|
1030
|
-
readonly
|
|
1031
|
-
readonly
|
|
1032
|
-
readonly
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
readonly
|
|
1036
|
-
readonly
|
|
1037
|
-
readonly
|
|
1038
|
-
|
|
1039
|
-
};
|
|
1040
|
-
}
|
|
1041
|
-
readonly
|
|
1042
|
-
readonly
|
|
1043
|
-
readonly
|
|
1044
|
-
readonly
|
|
1045
|
-
readonly
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
readonly
|
|
1051
|
-
readonly
|
|
1052
|
-
readonly
|
|
1053
|
-
|
|
1054
|
-
readonly
|
|
1055
|
-
readonly
|
|
1056
|
-
};
|
|
1057
|
-
|
|
1058
|
-
readonly
|
|
1059
|
-
readonly
|
|
1060
|
-
readonly
|
|
1061
|
-
readonly
|
|
1062
|
-
readonly
|
|
1063
|
-
readonly
|
|
1064
|
-
readonly
|
|
1065
|
-
readonly
|
|
1066
|
-
|
|
1067
|
-
readonly
|
|
1068
|
-
|
|
1069
|
-
readonly
|
|
1070
|
-
readonly
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
readonly
|
|
1074
|
-
|
|
1075
|
-
readonly
|
|
1076
|
-
readonly
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
readonly
|
|
1083
|
-
readonly
|
|
1084
|
-
readonly
|
|
1085
|
-
readonly
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
readonly
|
|
1089
|
-
|
|
1090
|
-
readonly
|
|
1091
|
-
readonly
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
readonly
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
readonly
|
|
1098
|
-
readonly
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
readonly
|
|
1102
|
-
readonly
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
};
|
|
1108
|
-
readonly
|
|
1109
|
-
readonly
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
readonly
|
|
1116
|
-
readonly
|
|
1117
|
-
readonly
|
|
1118
|
-
readonly
|
|
1119
|
-
readonly
|
|
1120
|
-
readonly
|
|
1121
|
-
readonly
|
|
1122
|
-
readonly
|
|
1123
|
-
readonly
|
|
1124
|
-
readonly
|
|
1125
|
-
readonly
|
|
1126
|
-
readonly
|
|
1127
|
-
readonly
|
|
1128
|
-
readonly
|
|
1129
|
-
readonly
|
|
1130
|
-
readonly
|
|
1131
|
-
readonly
|
|
1132
|
-
readonly
|
|
1133
|
-
readonly
|
|
1134
|
-
readonly
|
|
1135
|
-
readonly
|
|
1136
|
-
readonly
|
|
1137
|
-
readonly
|
|
1138
|
-
readonly
|
|
1139
|
-
readonly
|
|
1140
|
-
readonly
|
|
1141
|
-
readonly
|
|
1142
|
-
readonly
|
|
1143
|
-
|
|
1144
|
-
readonly
|
|
1145
|
-
readonly
|
|
1146
|
-
|
|
1147
|
-
readonly
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
readonly
|
|
1153
|
-
readonly
|
|
1154
|
-
|
|
1155
|
-
readonly
|
|
1156
|
-
}
|
|
1157
|
-
};
|
|
1158
|
-
|
|
1159
|
-
readonly
|
|
1160
|
-
readonly
|
|
1161
|
-
readonly
|
|
1162
|
-
readonly
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
readonly
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
readonly
|
|
1172
|
-
readonly
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
readonly
|
|
1177
|
-
readonly [x: string]:
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
readonly
|
|
1183
|
-
readonly [x: string]: string
|
|
1184
|
-
|
|
1185
|
-
};
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
readonly
|
|
1189
|
-
readonly
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
readonly
|
|
1194
|
-
readonly
|
|
1195
|
-
readonly
|
|
1196
|
-
|
|
1197
|
-
readonly
|
|
1198
|
-
readonly
|
|
1199
|
-
readonly
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
readonly
|
|
1205
|
-
readonly
|
|
1206
|
-
}
|
|
1207
|
-
readonly
|
|
1208
|
-
readonly
|
|
1209
|
-
}
|
|
1210
|
-
|
|
1211
|
-
readonly
|
|
1212
|
-
readonly
|
|
1213
|
-
readonly
|
|
1214
|
-
|
|
1215
|
-
readonly
|
|
1216
|
-
readonly
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
readonly
|
|
1221
|
-
}
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
readonly
|
|
1227
|
-
|
|
1228
|
-
readonly
|
|
1229
|
-
readonly
|
|
1230
|
-
readonly
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
readonly
|
|
1236
|
-
readonly
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
readonly
|
|
1242
|
-
readonly
|
|
1243
|
-
readonly
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
readonly
|
|
1248
|
-
readonly
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
readonly
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
readonly
|
|
1258
|
-
readonly
|
|
1259
|
-
readonly
|
|
1260
|
-
readonly
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
readonly
|
|
1264
|
-
readonly
|
|
1265
|
-
readonly
|
|
1266
|
-
|
|
1267
|
-
};
|
|
1268
|
-
}
|
|
1269
|
-
|
|
1270
|
-
readonly
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
readonly
|
|
1275
|
-
readonly
|
|
1276
|
-
readonly
|
|
1277
|
-
readonly
|
|
1278
|
-
|
|
1279
|
-
readonly
|
|
1280
|
-
readonly
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
readonly
|
|
1284
|
-
readonly
|
|
1285
|
-
readonly
|
|
1286
|
-
readonly
|
|
1287
|
-
|
|
1288
|
-
readonly
|
|
1289
|
-
readonly
|
|
1290
|
-
readonly
|
|
1291
|
-
readonly
|
|
1292
|
-
readonly
|
|
1293
|
-
readonly
|
|
1294
|
-
readonly
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
}[];
|
|
1298
|
-
} | undefined;
|
|
1299
|
-
readonly
|
|
1300
|
-
readonly
|
|
1301
|
-
readonly
|
|
1302
|
-
readonly
|
|
1303
|
-
readonly
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
readonly
|
|
1307
|
-
|
|
1308
|
-
readonly
|
|
1309
|
-
readonly
|
|
1310
|
-
readonly
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
readonly
|
|
1315
|
-
readonly
|
|
1316
|
-
readonly
|
|
1317
|
-
|
|
1318
|
-
readonly
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
readonly
|
|
1324
|
-
readonly
|
|
1325
|
-
readonly
|
|
1326
|
-
readonly
|
|
1327
|
-
readonly
|
|
1328
|
-
|
|
1329
|
-
readonly
|
|
1330
|
-
|
|
1331
|
-
readonly
|
|
1332
|
-
|
|
1333
|
-
readonly
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
readonly
|
|
1337
|
-
readonly
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
readonly
|
|
1341
|
-
readonly
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
readonly
|
|
1347
|
-
readonly
|
|
1348
|
-
readonly
|
|
1349
|
-
readonly
|
|
1350
|
-
readonly
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
readonly
|
|
1354
|
-
|
|
1355
|
-
readonly
|
|
1356
|
-
readonly
|
|
1357
|
-
|
|
1358
|
-
readonly
|
|
1359
|
-
readonly
|
|
1360
|
-
|
|
1361
|
-
readonly
|
|
1362
|
-
readonly
|
|
1363
|
-
|
|
1364
|
-
readonly
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
readonly
|
|
1369
|
-
readonly
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
readonly
|
|
1375
|
-
readonly
|
|
1376
|
-
readonly
|
|
1377
|
-
readonly
|
|
1378
|
-
readonly
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
readonly
|
|
1382
|
-
readonly
|
|
1383
|
-
readonly
|
|
1384
|
-
|
|
1385
|
-
};
|
|
1386
|
-
}
|
|
1387
|
-
readonly
|
|
1388
|
-
readonly
|
|
1389
|
-
readonly
|
|
1390
|
-
readonly
|
|
1391
|
-
readonly
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
readonly
|
|
1397
|
-
readonly
|
|
1398
|
-
readonly
|
|
1399
|
-
|
|
1400
|
-
readonly
|
|
1401
|
-
readonly
|
|
1402
|
-
};
|
|
1403
|
-
|
|
1404
|
-
readonly
|
|
1405
|
-
readonly
|
|
1406
|
-
readonly
|
|
1407
|
-
readonly
|
|
1408
|
-
readonly
|
|
1409
|
-
readonly
|
|
1410
|
-
readonly
|
|
1411
|
-
readonly
|
|
1412
|
-
|
|
1413
|
-
readonly
|
|
1414
|
-
|
|
1415
|
-
readonly
|
|
1416
|
-
readonly
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
readonly
|
|
1420
|
-
|
|
1421
|
-
readonly
|
|
1422
|
-
readonly
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
readonly
|
|
1429
|
-
readonly
|
|
1430
|
-
readonly
|
|
1431
|
-
readonly
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
readonly
|
|
1435
|
-
|
|
1436
|
-
readonly
|
|
1437
|
-
readonly
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
readonly
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
readonly
|
|
1444
|
-
readonly
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
readonly
|
|
1448
|
-
readonly
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
};
|
|
1454
|
-
readonly
|
|
1455
|
-
readonly
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
readonly
|
|
1464
|
-
readonly
|
|
1465
|
-
readonly
|
|
1466
|
-
readonly
|
|
1467
|
-
readonly
|
|
1468
|
-
readonly
|
|
1469
|
-
readonly
|
|
1470
|
-
|
|
1471
|
-
readonly
|
|
1472
|
-
readonly
|
|
1473
|
-
|
|
1474
|
-
readonly
|
|
1475
|
-
readonly
|
|
1476
|
-
readonly
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
readonly
|
|
1484
|
-
readonly
|
|
1485
|
-
readonly
|
|
1486
|
-
readonly
|
|
1487
|
-
readonly
|
|
1488
|
-
readonly
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
readonly
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
}
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
}
|
|
1513
|
-
}
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
readonly
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
}
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
}
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
}
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
value: Schema.Record$<typeof Schema.String, Schema.Union<[typeof Schema.String, Schema.Record$<typeof Schema.String, Schema.SchemaClass<unknown, unknown, never>>]>>;
|
|
1752
|
-
}>, Schema.Struct<{
|
|
1753
|
-
resolved: Schema.Record$<typeof Schema.String, typeof Schema.String>;
|
|
1754
|
-
}>]>;
|
|
1755
|
-
|
|
1756
|
-
declare interface SecretInfo {
|
|
1757
|
-
name: string;
|
|
1758
|
-
}
|
|
1759
|
-
|
|
1760
|
-
declare type SecretScope = "actions" | "dependabot" | "codespaces";
|
|
1761
|
-
|
|
1762
|
-
export declare class SyncEngine extends SyncEngine_base {
|
|
1763
|
-
}
|
|
1764
|
-
|
|
1765
|
-
declare const SyncEngine_base: Context.TagClass<SyncEngine, "SyncEngine", SyncEngineService>;
|
|
1766
|
-
|
|
1767
|
-
export declare const SyncEngineLive: Layer_2.Layer<SyncEngine, never, CredentialResolver | GitHubClient | SyncLogger>;
|
|
1768
|
-
|
|
1769
|
-
declare interface SyncEngineService {
|
|
1770
|
-
readonly syncAll: (config: Config, credentials: Credentials, options: SyncOptions) => Effect.Effect<void, SyncError>;
|
|
1771
|
-
}
|
|
1772
|
-
|
|
1773
|
-
export declare class SyncError extends SyncError_base<{
|
|
1774
|
-
readonly message: string;
|
|
1775
|
-
}> {
|
|
1776
|
-
}
|
|
1777
|
-
|
|
1778
|
-
declare const SyncError_base: new <A extends Record<string, any> = {}>(args: VoidIfEmpty< { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => YieldableError & {
|
|
1779
|
-
readonly _tag: "SyncError";
|
|
1780
|
-
} & Readonly<A>;
|
|
1781
|
-
|
|
1782
|
-
export declare class SyncLogger extends SyncLogger_base {
|
|
1783
|
-
}
|
|
1784
|
-
|
|
1785
|
-
declare const SyncLogger_base: Context.TagClass<SyncLogger, "SyncLogger", SyncLoggerService>;
|
|
1786
|
-
|
|
1787
|
-
export declare interface SyncLoggerConfig {
|
|
1788
|
-
readonly dryRun: boolean;
|
|
1789
|
-
readonly logLevel: LogLevel;
|
|
1790
|
-
readonly output?: Ref.Ref<string[]>;
|
|
1791
|
-
}
|
|
1792
|
-
|
|
1793
|
-
export declare function SyncLoggerLive(config: SyncLoggerConfig): Layer_2.Layer<SyncLogger>;
|
|
1794
|
-
|
|
1795
|
-
declare interface SyncLoggerService {
|
|
1796
|
-
readonly groupStart: (name: string, repoCount: number) => Effect.Effect<void>;
|
|
1797
|
-
readonly repoStart: (owner: string, repo: string) => Effect.Effect<void>;
|
|
1798
|
-
readonly repoSkip: (owner: string, repo: string, reason: string) => Effect.Effect<void>;
|
|
1799
|
-
readonly syncSummary: (resource: "secret" | "variable" | "ruleset" | "environment" | "security feature" | "code scanning", count: number, detail: string) => Effect.Effect<void>;
|
|
1800
|
-
readonly settingsApplied: () => Effect.Effect<void>;
|
|
1801
|
-
readonly cleanupSummary: (resource: string, count: number, names: string[]) => Effect.Effect<void>;
|
|
1802
|
-
readonly syncOperation: (verb: "sync" | "apply" | "delete" | "skip", resource: string, name: string, detail?: string, source?: string) => Effect.Effect<void>;
|
|
1803
|
-
readonly syncError: (context: string, message: string) => Effect.Effect<void>;
|
|
1804
|
-
readonly finish: () => Effect.Effect<void>;
|
|
1805
|
-
}
|
|
1806
|
-
|
|
1807
|
-
declare interface SyncOptions {
|
|
1808
|
-
readonly dryRun: boolean;
|
|
1809
|
-
readonly noCleanup: boolean;
|
|
1810
|
-
readonly groupFilter?: string | undefined;
|
|
1811
|
-
readonly repoFilter?: string | undefined;
|
|
1812
|
-
readonly configDir: string;
|
|
1813
|
-
}
|
|
1814
|
-
|
|
1815
|
-
/**
|
|
1816
|
-
* Validates all internal cross-references in a parsed config. Checks that
|
|
1817
|
-
* every group's settings, secrets, variables, rulesets, and environments
|
|
1818
|
-
* references point to defined top-level sections, and that environment-scoped
|
|
1819
|
-
* secret/variable groups reference defined environments. Collects ALL errors
|
|
1820
|
-
* into a single ConfigError.
|
|
1821
|
-
*/
|
|
1822
|
-
export declare function validateConfigRefs(config: Config): Effect.Effect<Config, XdgConfigError>;
|
|
1823
|
-
|
|
1824
|
-
export declare type VariableGroup = typeof VariableGroupSchema.Type;
|
|
1825
|
-
|
|
1826
|
-
export declare const VariableGroupSchema: Schema.Union<[Schema.Struct<{
|
|
1827
|
-
file: Schema.Record$<typeof Schema.String, typeof Schema.String>;
|
|
1828
|
-
}>, Schema.Struct<{
|
|
1829
|
-
value: Schema.Record$<typeof Schema.String, Schema.Union<[typeof Schema.String, Schema.Record$<typeof Schema.String, Schema.SchemaClass<unknown, unknown, never>>]>>;
|
|
1830
|
-
}>, Schema.Struct<{
|
|
1831
|
-
resolved: Schema.Record$<typeof Schema.String, typeof Schema.String>;
|
|
1832
|
-
}>]>;
|
|
1833
|
-
|
|
1834
|
-
declare interface VariableInfo {
|
|
1835
|
-
name: string;
|
|
1836
|
-
}
|
|
1837
|
-
|
|
1838
|
-
export { XdgConfigError }
|
|
1839
|
-
|
|
1840
|
-
export { }
|
|
1
|
+
import { AppDirs, ConfigError, ConfigError as XdgConfigError, ConfigFile } from "xdg-effect";
|
|
2
|
+
import { Context, Effect, Layer, Option, Ref, Schema } from "effect";
|
|
3
|
+
|
|
4
|
+
//#region src/errors.d.ts
|
|
5
|
+
declare const ResolveError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }>) => import("effect/Cause").YieldableError & {
|
|
6
|
+
readonly _tag: "ResolveError";
|
|
7
|
+
} & Readonly<A>;
|
|
8
|
+
declare class ResolveError extends ResolveError_base<{
|
|
9
|
+
readonly message: string;
|
|
10
|
+
}> {}
|
|
11
|
+
declare const OnePasswordError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }>) => import("effect/Cause").YieldableError & {
|
|
12
|
+
readonly _tag: "OnePasswordError";
|
|
13
|
+
} & Readonly<A>;
|
|
14
|
+
declare class OnePasswordError extends OnePasswordError_base<{
|
|
15
|
+
readonly message: string;
|
|
16
|
+
}> {}
|
|
17
|
+
declare const GitHubApiError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }>) => import("effect/Cause").YieldableError & {
|
|
18
|
+
readonly _tag: "GitHubApiError";
|
|
19
|
+
} & Readonly<A>;
|
|
20
|
+
declare class GitHubApiError extends GitHubApiError_base<{
|
|
21
|
+
readonly message: string;
|
|
22
|
+
readonly status?: number;
|
|
23
|
+
}> {}
|
|
24
|
+
declare const SyncError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }>) => import("effect/Cause").YieldableError & {
|
|
25
|
+
readonly _tag: "SyncError";
|
|
26
|
+
} & Readonly<A>;
|
|
27
|
+
declare class SyncError extends SyncError_base<{
|
|
28
|
+
readonly message: string;
|
|
29
|
+
}> {}
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/lib/crypto.d.ts
|
|
32
|
+
/**
|
|
33
|
+
* Encrypt a secret using libsodium's sealed box algorithm.
|
|
34
|
+
* Implementation based on tweetsodium using tweetnacl + blakejs.
|
|
35
|
+
*
|
|
36
|
+
* The sealed box format is: ephemeral_public_key (32 bytes) || ciphertext
|
|
37
|
+
*/
|
|
38
|
+
declare function encryptSecret(publicKey: string, secretValue: string): string;
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/schemas/common.d.ts
|
|
41
|
+
declare const SecretGroupSchema: Schema.Union<[Schema.Struct<{
|
|
42
|
+
file: Schema.Record$<typeof Schema.String, typeof Schema.String>;
|
|
43
|
+
}>, Schema.Struct<{
|
|
44
|
+
value: Schema.Record$<typeof Schema.String, Schema.Union<[typeof Schema.String, Schema.Record$<typeof Schema.String, Schema.SchemaClass<unknown, unknown, never>>]>>;
|
|
45
|
+
}>, Schema.Struct<{
|
|
46
|
+
resolved: Schema.Record$<typeof Schema.String, typeof Schema.String>;
|
|
47
|
+
}>]>;
|
|
48
|
+
type SecretGroup = typeof SecretGroupSchema.Type;
|
|
49
|
+
declare const VariableGroupSchema: Schema.Union<[Schema.Struct<{
|
|
50
|
+
file: Schema.Record$<typeof Schema.String, typeof Schema.String>;
|
|
51
|
+
}>, Schema.Struct<{
|
|
52
|
+
value: Schema.Record$<typeof Schema.String, Schema.Union<[typeof Schema.String, Schema.Record$<typeof Schema.String, Schema.SchemaClass<unknown, unknown, never>>]>>;
|
|
53
|
+
}>, Schema.Struct<{
|
|
54
|
+
resolved: Schema.Record$<typeof Schema.String, typeof Schema.String>;
|
|
55
|
+
}>]>;
|
|
56
|
+
type VariableGroup = typeof VariableGroupSchema.Type;
|
|
57
|
+
declare const CleanupScopeSchema: Schema.Union<[typeof Schema.Boolean, Schema.Struct<{
|
|
58
|
+
preserve: Schema.Array$<typeof Schema.String>;
|
|
59
|
+
}>]>;
|
|
60
|
+
type CleanupScope = typeof CleanupScopeSchema.Type;
|
|
61
|
+
declare const CleanupSchema: Schema.Struct<{
|
|
62
|
+
secrets: Schema.optionalWith<Schema.Struct<{
|
|
63
|
+
actions: Schema.optionalWith<Schema.Union<[typeof Schema.Boolean, Schema.Struct<{
|
|
64
|
+
preserve: Schema.Array$<typeof Schema.String>;
|
|
65
|
+
}>]>, {
|
|
66
|
+
default: () => CleanupScope;
|
|
67
|
+
}>;
|
|
68
|
+
dependabot: Schema.optionalWith<Schema.Union<[typeof Schema.Boolean, Schema.Struct<{
|
|
69
|
+
preserve: Schema.Array$<typeof Schema.String>;
|
|
70
|
+
}>]>, {
|
|
71
|
+
default: () => CleanupScope;
|
|
72
|
+
}>;
|
|
73
|
+
codespaces: Schema.optionalWith<Schema.Union<[typeof Schema.Boolean, Schema.Struct<{
|
|
74
|
+
preserve: Schema.Array$<typeof Schema.String>;
|
|
75
|
+
}>]>, {
|
|
76
|
+
default: () => CleanupScope;
|
|
77
|
+
}>;
|
|
78
|
+
environments: Schema.optionalWith<Schema.Union<[typeof Schema.Boolean, Schema.Struct<{
|
|
79
|
+
preserve: Schema.Array$<typeof Schema.String>;
|
|
80
|
+
}>]>, {
|
|
81
|
+
default: () => CleanupScope;
|
|
82
|
+
}>;
|
|
83
|
+
}>, {
|
|
84
|
+
default: () => {
|
|
85
|
+
actions: CleanupScope;
|
|
86
|
+
dependabot: CleanupScope;
|
|
87
|
+
codespaces: CleanupScope;
|
|
88
|
+
environments: CleanupScope;
|
|
89
|
+
};
|
|
90
|
+
}>;
|
|
91
|
+
variables: Schema.optionalWith<Schema.Struct<{
|
|
92
|
+
actions: Schema.optionalWith<Schema.Union<[typeof Schema.Boolean, Schema.Struct<{
|
|
93
|
+
preserve: Schema.Array$<typeof Schema.String>;
|
|
94
|
+
}>]>, {
|
|
95
|
+
default: () => CleanupScope;
|
|
96
|
+
}>;
|
|
97
|
+
environments: Schema.optionalWith<Schema.Union<[typeof Schema.Boolean, Schema.Struct<{
|
|
98
|
+
preserve: Schema.Array$<typeof Schema.String>;
|
|
99
|
+
}>]>, {
|
|
100
|
+
default: () => CleanupScope;
|
|
101
|
+
}>;
|
|
102
|
+
}>, {
|
|
103
|
+
default: () => {
|
|
104
|
+
actions: CleanupScope;
|
|
105
|
+
environments: CleanupScope;
|
|
106
|
+
};
|
|
107
|
+
}>;
|
|
108
|
+
rulesets: Schema.optionalWith<Schema.Union<[typeof Schema.Boolean, Schema.Struct<{
|
|
109
|
+
preserve: Schema.Array$<typeof Schema.String>;
|
|
110
|
+
}>]>, {
|
|
111
|
+
default: () => CleanupScope;
|
|
112
|
+
}>;
|
|
113
|
+
environments: Schema.optionalWith<Schema.Union<[typeof Schema.Boolean, Schema.Struct<{
|
|
114
|
+
preserve: Schema.Array$<typeof Schema.String>;
|
|
115
|
+
}>]>, {
|
|
116
|
+
default: () => CleanupScope;
|
|
117
|
+
}>;
|
|
118
|
+
}>;
|
|
119
|
+
type Cleanup = typeof CleanupSchema.Type;
|
|
120
|
+
//#endregion
|
|
121
|
+
//#region src/schemas/config.d.ts
|
|
122
|
+
declare const GroupSchema: Schema.Struct<{
|
|
123
|
+
owner: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
124
|
+
repos: Schema.Array$<typeof Schema.String>;
|
|
125
|
+
credentials: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
126
|
+
settings: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
127
|
+
environments: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
128
|
+
secrets: Schema.optional<Schema.Struct<{
|
|
129
|
+
actions: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
130
|
+
dependabot: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
131
|
+
codespaces: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
132
|
+
environments: Schema.optional<Schema.Record$<typeof Schema.String, Schema.Array$<typeof Schema.String>>>;
|
|
133
|
+
}>>;
|
|
134
|
+
variables: Schema.optional<Schema.Struct<{
|
|
135
|
+
actions: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
136
|
+
environments: Schema.optional<Schema.Record$<typeof Schema.String, Schema.Array$<typeof Schema.String>>>;
|
|
137
|
+
}>>;
|
|
138
|
+
rulesets: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
139
|
+
security: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
140
|
+
code_scanning: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
141
|
+
cleanup: Schema.optional<Schema.Struct<{
|
|
142
|
+
secrets: Schema.optionalWith<Schema.Struct<{
|
|
143
|
+
actions: Schema.optionalWith<Schema.Union<[typeof Schema.Boolean, Schema.Struct<{
|
|
144
|
+
preserve: Schema.Array$<typeof Schema.String>;
|
|
145
|
+
}>]>, {
|
|
146
|
+
default: () => CleanupScope;
|
|
147
|
+
}>;
|
|
148
|
+
dependabot: Schema.optionalWith<Schema.Union<[typeof Schema.Boolean, Schema.Struct<{
|
|
149
|
+
preserve: Schema.Array$<typeof Schema.String>;
|
|
150
|
+
}>]>, {
|
|
151
|
+
default: () => CleanupScope;
|
|
152
|
+
}>;
|
|
153
|
+
codespaces: Schema.optionalWith<Schema.Union<[typeof Schema.Boolean, Schema.Struct<{
|
|
154
|
+
preserve: Schema.Array$<typeof Schema.String>;
|
|
155
|
+
}>]>, {
|
|
156
|
+
default: () => CleanupScope;
|
|
157
|
+
}>;
|
|
158
|
+
environments: Schema.optionalWith<Schema.Union<[typeof Schema.Boolean, Schema.Struct<{
|
|
159
|
+
preserve: Schema.Array$<typeof Schema.String>;
|
|
160
|
+
}>]>, {
|
|
161
|
+
default: () => CleanupScope;
|
|
162
|
+
}>;
|
|
163
|
+
}>, {
|
|
164
|
+
default: () => {
|
|
165
|
+
actions: CleanupScope;
|
|
166
|
+
dependabot: CleanupScope;
|
|
167
|
+
codespaces: CleanupScope;
|
|
168
|
+
environments: CleanupScope;
|
|
169
|
+
};
|
|
170
|
+
}>;
|
|
171
|
+
variables: Schema.optionalWith<Schema.Struct<{
|
|
172
|
+
actions: Schema.optionalWith<Schema.Union<[typeof Schema.Boolean, Schema.Struct<{
|
|
173
|
+
preserve: Schema.Array$<typeof Schema.String>;
|
|
174
|
+
}>]>, {
|
|
175
|
+
default: () => CleanupScope;
|
|
176
|
+
}>;
|
|
177
|
+
environments: Schema.optionalWith<Schema.Union<[typeof Schema.Boolean, Schema.Struct<{
|
|
178
|
+
preserve: Schema.Array$<typeof Schema.String>;
|
|
179
|
+
}>]>, {
|
|
180
|
+
default: () => CleanupScope;
|
|
181
|
+
}>;
|
|
182
|
+
}>, {
|
|
183
|
+
default: () => {
|
|
184
|
+
actions: CleanupScope;
|
|
185
|
+
environments: CleanupScope;
|
|
186
|
+
};
|
|
187
|
+
}>;
|
|
188
|
+
rulesets: Schema.optionalWith<Schema.Union<[typeof Schema.Boolean, Schema.Struct<{
|
|
189
|
+
preserve: Schema.Array$<typeof Schema.String>;
|
|
190
|
+
}>]>, {
|
|
191
|
+
default: () => CleanupScope;
|
|
192
|
+
}>;
|
|
193
|
+
environments: Schema.optionalWith<Schema.Union<[typeof Schema.Boolean, Schema.Struct<{
|
|
194
|
+
preserve: Schema.Array$<typeof Schema.String>;
|
|
195
|
+
}>]>, {
|
|
196
|
+
default: () => CleanupScope;
|
|
197
|
+
}>;
|
|
198
|
+
}>>;
|
|
199
|
+
}>;
|
|
200
|
+
type Group = typeof GroupSchema.Type;
|
|
201
|
+
declare const CodeScanningGroupSchema: Schema.refine<{
|
|
202
|
+
readonly state?: "configured" | "not-configured" | undefined;
|
|
203
|
+
readonly languages?: readonly ("actions" | "c-cpp" | "csharp" | "go" | "java-kotlin" | "javascript-typescript" | "python" | "ruby" | "swift")[] | undefined;
|
|
204
|
+
readonly query_suite?: "default" | "extended" | undefined;
|
|
205
|
+
readonly threat_model?: "remote" | "remote_and_local" | undefined;
|
|
206
|
+
readonly runner_type?: "standard" | "labeled" | undefined;
|
|
207
|
+
readonly runner_label?: string | undefined;
|
|
208
|
+
}, Schema.Struct<{
|
|
209
|
+
state: Schema.optional<Schema.Literal<["configured", "not-configured"]>>;
|
|
210
|
+
languages: Schema.optional<Schema.Array$<Schema.Literal<["actions", "c-cpp", "csharp", "go", "java-kotlin", "javascript-typescript", "python", "ruby", "swift"]>>>;
|
|
211
|
+
query_suite: Schema.optional<Schema.Literal<["default", "extended"]>>;
|
|
212
|
+
threat_model: Schema.optional<Schema.Literal<["remote", "remote_and_local"]>>;
|
|
213
|
+
runner_type: Schema.optional<Schema.Literal<["standard", "labeled"]>>;
|
|
214
|
+
runner_label: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
215
|
+
}>>;
|
|
216
|
+
type CodeScanningGroup = typeof CodeScanningGroupSchema.Type;
|
|
217
|
+
declare const LogLevelSchema: Schema.Literal<["silent", "info", "verbose", "debug"]>;
|
|
218
|
+
type LogLevel = typeof LogLevelSchema.Type;
|
|
219
|
+
declare const ConfigSchema: Schema.Struct<{
|
|
220
|
+
owner: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
221
|
+
log_level: Schema.optionalWith<Schema.Literal<["silent", "info", "verbose", "debug"]>, {
|
|
222
|
+
default: () => "info";
|
|
223
|
+
}>;
|
|
224
|
+
settings: Schema.optionalWith<Schema.Record$<typeof Schema.String, Schema.TypeLiteral<{
|
|
225
|
+
is_template: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
226
|
+
has_wiki: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
227
|
+
has_issues: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
228
|
+
has_projects: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
229
|
+
has_discussions: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
230
|
+
has_sponsorships: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
231
|
+
has_pull_requests: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
232
|
+
allow_forking: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
233
|
+
allow_merge_commit: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
234
|
+
allow_squash_merge: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
235
|
+
allow_rebase_merge: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
236
|
+
allow_auto_merge: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
237
|
+
allow_update_branch: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
238
|
+
squash_merge_commit_title: Schema.optional<Schema.Literal<["PR_TITLE", "COMMIT_OR_PR_TITLE"]>>;
|
|
239
|
+
squash_merge_commit_message: Schema.optional<Schema.Literal<["PR_BODY", "COMMIT_MESSAGES", "BLANK"]>>;
|
|
240
|
+
merge_commit_title: Schema.optional<Schema.Literal<["PR_TITLE", "MERGE_MESSAGE"]>>;
|
|
241
|
+
merge_commit_message: Schema.optional<Schema.Literal<["PR_BODY", "PR_TITLE", "BLANK"]>>;
|
|
242
|
+
delete_branch_on_merge: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
243
|
+
web_commit_signoff_required: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
244
|
+
security_and_analysis: Schema.optional<Schema.Struct<{
|
|
245
|
+
advanced_security: Schema.optional<Schema.Literal<["enabled", "disabled"]>>;
|
|
246
|
+
code_security: Schema.optional<Schema.Literal<["enabled", "disabled"]>>;
|
|
247
|
+
secret_scanning: Schema.optional<Schema.Literal<["enabled", "disabled"]>>;
|
|
248
|
+
secret_scanning_push_protection: Schema.optional<Schema.Literal<["enabled", "disabled"]>>;
|
|
249
|
+
secret_scanning_ai_detection: Schema.optional<Schema.Literal<["enabled", "disabled"]>>;
|
|
250
|
+
secret_scanning_non_provider_patterns: Schema.optional<Schema.Literal<["enabled", "disabled"]>>;
|
|
251
|
+
secret_scanning_delegated_alert_dismissal: Schema.optional<Schema.Literal<["enabled", "disabled"]>>;
|
|
252
|
+
secret_scanning_delegated_bypass: Schema.optional<Schema.Literal<["enabled", "disabled"]>>;
|
|
253
|
+
delegated_bypass_reviewers: Schema.optional<Schema.Array$<Schema.Union<[Schema.Struct<{
|
|
254
|
+
team: Schema.SchemaClass<string, string, never>;
|
|
255
|
+
mode: Schema.optional<Schema.Literal<["ALWAYS", "EXEMPT"]>>;
|
|
256
|
+
}>, Schema.Struct<{
|
|
257
|
+
role: Schema.SchemaClass<string, string, never>;
|
|
258
|
+
mode: Schema.optional<Schema.Literal<["ALWAYS", "EXEMPT"]>>;
|
|
259
|
+
}>]>>>;
|
|
260
|
+
dependabot_security_updates: Schema.optional<Schema.Literal<["enabled", "disabled"]>>;
|
|
261
|
+
}>>;
|
|
262
|
+
}, readonly [{
|
|
263
|
+
readonly key: typeof Schema.String;
|
|
264
|
+
readonly value: Schema.SchemaClass<unknown, unknown, never>;
|
|
265
|
+
}]>>, {
|
|
266
|
+
default: () => {};
|
|
267
|
+
}>;
|
|
268
|
+
secrets: Schema.optionalWith<Schema.Record$<typeof Schema.String, Schema.Union<[Schema.Struct<{
|
|
269
|
+
file: Schema.Record$<typeof Schema.String, typeof Schema.String>;
|
|
270
|
+
}>, Schema.Struct<{
|
|
271
|
+
value: Schema.Record$<typeof Schema.String, Schema.Union<[typeof Schema.String, Schema.Record$<typeof Schema.String, Schema.SchemaClass<unknown, unknown, never>>]>>;
|
|
272
|
+
}>, Schema.Struct<{
|
|
273
|
+
resolved: Schema.Record$<typeof Schema.String, typeof Schema.String>;
|
|
274
|
+
}>]>>, {
|
|
275
|
+
default: () => {};
|
|
276
|
+
}>;
|
|
277
|
+
variables: Schema.optionalWith<Schema.Record$<typeof Schema.String, Schema.Union<[Schema.Struct<{
|
|
278
|
+
file: Schema.Record$<typeof Schema.String, typeof Schema.String>;
|
|
279
|
+
}>, Schema.Struct<{
|
|
280
|
+
value: Schema.Record$<typeof Schema.String, Schema.Union<[typeof Schema.String, Schema.Record$<typeof Schema.String, Schema.SchemaClass<unknown, unknown, never>>]>>;
|
|
281
|
+
}>, Schema.Struct<{
|
|
282
|
+
resolved: Schema.Record$<typeof Schema.String, typeof Schema.String>;
|
|
283
|
+
}>]>>, {
|
|
284
|
+
default: () => {};
|
|
285
|
+
}>;
|
|
286
|
+
rulesets: Schema.optionalWith<Schema.Record$<typeof Schema.String, Schema.Union<[Schema.Struct<{
|
|
287
|
+
type: Schema.Literal<["branch"]>;
|
|
288
|
+
pull_requests: Schema.optional<Schema.Struct<{
|
|
289
|
+
approvals: Schema.optionalWith<Schema.refine<number, typeof Schema.Int>, {
|
|
290
|
+
default: () => number;
|
|
291
|
+
}>;
|
|
292
|
+
dismiss_stale_reviews: Schema.optionalWith<Schema.SchemaClass<boolean, boolean, never>, {
|
|
293
|
+
default: () => boolean;
|
|
294
|
+
}>;
|
|
295
|
+
code_owner_review: Schema.optionalWith<Schema.SchemaClass<boolean, boolean, never>, {
|
|
296
|
+
default: () => boolean;
|
|
297
|
+
}>;
|
|
298
|
+
last_push_approval: Schema.optionalWith<Schema.SchemaClass<boolean, boolean, never>, {
|
|
299
|
+
default: () => boolean;
|
|
300
|
+
}>;
|
|
301
|
+
resolve_threads: Schema.optionalWith<Schema.SchemaClass<boolean, boolean, never>, {
|
|
302
|
+
default: () => boolean;
|
|
303
|
+
}>;
|
|
304
|
+
merge_methods: Schema.optional<Schema.Array$<Schema.Literal<["merge", "squash", "rebase"]>>>;
|
|
305
|
+
reviewers: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
306
|
+
file_patterns: Schema.Array$<typeof Schema.String>;
|
|
307
|
+
minimum_approvals: Schema.refine<number, typeof Schema.Number>;
|
|
308
|
+
reviewer: Schema.Struct<{
|
|
309
|
+
id: Schema.refine<number, typeof Schema.Number>;
|
|
310
|
+
type: Schema.Literal<["Team"]>;
|
|
311
|
+
}>;
|
|
312
|
+
}>>>;
|
|
313
|
+
}>>;
|
|
314
|
+
merge_queue: Schema.optional<Schema.Struct<{
|
|
315
|
+
check_timeout: Schema.refine<number, typeof Schema.Int>;
|
|
316
|
+
grouping: Schema.Literal<["ALLGREEN", "HEADGREEN"]>;
|
|
317
|
+
max_build: Schema.refine<number, typeof Schema.Int>;
|
|
318
|
+
max_merge: Schema.refine<number, typeof Schema.Int>;
|
|
319
|
+
merge_method: Schema.Literal<["MERGE", "SQUASH", "REBASE"]>;
|
|
320
|
+
min_merge: Schema.refine<number, typeof Schema.Int>;
|
|
321
|
+
min_wait: Schema.refine<number, typeof Schema.Int>;
|
|
322
|
+
}>>;
|
|
323
|
+
copilot_review: Schema.optional<Schema.Struct<{
|
|
324
|
+
draft_prs: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
325
|
+
on_push: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
326
|
+
}>>;
|
|
327
|
+
code_scanning: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
328
|
+
tool: Schema.SchemaClass<string, string, never>;
|
|
329
|
+
alerts: Schema.Literal<["none", "errors", "errors_and_warnings", "all"]>;
|
|
330
|
+
security_alerts: Schema.Literal<["none", "critical", "high_or_higher", "medium_or_higher", "all"]>;
|
|
331
|
+
}>>>;
|
|
332
|
+
workflows: Schema.optional<Schema.Struct<{
|
|
333
|
+
on_creation: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
334
|
+
required: Schema.Array$<Schema.Struct<{
|
|
335
|
+
path: Schema.SchemaClass<string, string, never>;
|
|
336
|
+
ref: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
337
|
+
repository_id: Schema.Union<[typeof Schema.Int, Schema.Struct<{
|
|
338
|
+
resolved: Schema.SchemaClass<string, string, never>;
|
|
339
|
+
}>]>;
|
|
340
|
+
sha: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
341
|
+
}>>;
|
|
342
|
+
}>>;
|
|
343
|
+
branch_name: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
344
|
+
operator: Schema.Literal<["starts_with", "ends_with", "contains", "regex"]>;
|
|
345
|
+
pattern: Schema.SchemaClass<string, string, never>;
|
|
346
|
+
name: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
347
|
+
negate: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
348
|
+
}>>>;
|
|
349
|
+
name: Schema.SchemaClass<string, string, never>;
|
|
350
|
+
enforcement: Schema.Literal<["disabled", "active", "evaluate"]>;
|
|
351
|
+
conditions: Schema.optional<Schema.Struct<{
|
|
352
|
+
ref_name: Schema.optional<Schema.Struct<{
|
|
353
|
+
include: Schema.optionalWith<Schema.Array$<typeof Schema.String>, {
|
|
354
|
+
default: () => never[];
|
|
355
|
+
}>;
|
|
356
|
+
exclude: Schema.optionalWith<Schema.Array$<typeof Schema.String>, {
|
|
357
|
+
default: () => never[];
|
|
358
|
+
}>;
|
|
359
|
+
}>>;
|
|
360
|
+
}>>;
|
|
361
|
+
bypass_actors: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
362
|
+
actor_id: Schema.optional<Schema.Union<[typeof Schema.Int, Schema.Struct<{
|
|
363
|
+
resolved: Schema.SchemaClass<string, string, never>;
|
|
364
|
+
}>]>>;
|
|
365
|
+
actor_type: Schema.Literal<["Integration", "OrganizationAdmin", "RepositoryRole", "Team", "DeployKey"]>;
|
|
366
|
+
bypass_mode: Schema.optionalWith<Schema.Literal<["always", "pull_request", "exempt"]>, {
|
|
367
|
+
default: () => "always";
|
|
368
|
+
}>;
|
|
369
|
+
}>>>;
|
|
370
|
+
creation: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
371
|
+
update: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
372
|
+
deletion: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
373
|
+
required_linear_history: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
374
|
+
required_signatures: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
375
|
+
non_fast_forward: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
376
|
+
deployments: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
377
|
+
targets: Schema.optional<Schema.Union<[Schema.Literal<["default", "all"]>, Schema.Array$<Schema.Union<[Schema.Struct<{
|
|
378
|
+
include: Schema.SchemaClass<string, string, never>;
|
|
379
|
+
}>, Schema.Struct<{
|
|
380
|
+
exclude: Schema.SchemaClass<string, string, never>;
|
|
381
|
+
}>]>>]>>;
|
|
382
|
+
status_checks: Schema.optional<Schema.Struct<{
|
|
383
|
+
update_branch: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
384
|
+
on_creation: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
385
|
+
default_integration_id: Schema.optional<Schema.Union<[typeof Schema.Int, Schema.Struct<{
|
|
386
|
+
resolved: Schema.SchemaClass<string, string, never>;
|
|
387
|
+
}>]>>;
|
|
388
|
+
required: Schema.Array$<Schema.Struct<{
|
|
389
|
+
context: Schema.SchemaClass<string, string, never>;
|
|
390
|
+
integration_id: Schema.optional<Schema.Union<[typeof Schema.Int, Schema.Struct<{
|
|
391
|
+
resolved: Schema.SchemaClass<string, string, never>;
|
|
392
|
+
}>]>>;
|
|
393
|
+
}>>;
|
|
394
|
+
}>>;
|
|
395
|
+
commit_message: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
396
|
+
operator: Schema.Literal<["starts_with", "ends_with", "contains", "regex"]>;
|
|
397
|
+
pattern: Schema.SchemaClass<string, string, never>;
|
|
398
|
+
name: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
399
|
+
negate: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
400
|
+
}>>>;
|
|
401
|
+
commit_author_email: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
402
|
+
operator: Schema.Literal<["starts_with", "ends_with", "contains", "regex"]>;
|
|
403
|
+
pattern: Schema.SchemaClass<string, string, never>;
|
|
404
|
+
name: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
405
|
+
negate: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
406
|
+
}>>>;
|
|
407
|
+
committer_email: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
408
|
+
operator: Schema.Literal<["starts_with", "ends_with", "contains", "regex"]>;
|
|
409
|
+
pattern: Schema.SchemaClass<string, string, never>;
|
|
410
|
+
name: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
411
|
+
negate: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
412
|
+
}>>>;
|
|
413
|
+
}>, Schema.Struct<{
|
|
414
|
+
type: Schema.Literal<["tag"]>;
|
|
415
|
+
tag_name: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
416
|
+
operator: Schema.Literal<["starts_with", "ends_with", "contains", "regex"]>;
|
|
417
|
+
pattern: Schema.SchemaClass<string, string, never>;
|
|
418
|
+
name: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
419
|
+
negate: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
420
|
+
}>>>;
|
|
421
|
+
name: Schema.SchemaClass<string, string, never>;
|
|
422
|
+
enforcement: Schema.Literal<["disabled", "active", "evaluate"]>;
|
|
423
|
+
conditions: Schema.optional<Schema.Struct<{
|
|
424
|
+
ref_name: Schema.optional<Schema.Struct<{
|
|
425
|
+
include: Schema.optionalWith<Schema.Array$<typeof Schema.String>, {
|
|
426
|
+
default: () => never[];
|
|
427
|
+
}>;
|
|
428
|
+
exclude: Schema.optionalWith<Schema.Array$<typeof Schema.String>, {
|
|
429
|
+
default: () => never[];
|
|
430
|
+
}>;
|
|
431
|
+
}>>;
|
|
432
|
+
}>>;
|
|
433
|
+
bypass_actors: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
434
|
+
actor_id: Schema.optional<Schema.Union<[typeof Schema.Int, Schema.Struct<{
|
|
435
|
+
resolved: Schema.SchemaClass<string, string, never>;
|
|
436
|
+
}>]>>;
|
|
437
|
+
actor_type: Schema.Literal<["Integration", "OrganizationAdmin", "RepositoryRole", "Team", "DeployKey"]>;
|
|
438
|
+
bypass_mode: Schema.optionalWith<Schema.Literal<["always", "pull_request", "exempt"]>, {
|
|
439
|
+
default: () => "always";
|
|
440
|
+
}>;
|
|
441
|
+
}>>>;
|
|
442
|
+
creation: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
443
|
+
update: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
444
|
+
deletion: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
445
|
+
required_linear_history: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
446
|
+
required_signatures: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
447
|
+
non_fast_forward: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
448
|
+
deployments: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
449
|
+
targets: Schema.optional<Schema.Union<[Schema.Literal<["default", "all"]>, Schema.Array$<Schema.Union<[Schema.Struct<{
|
|
450
|
+
include: Schema.SchemaClass<string, string, never>;
|
|
451
|
+
}>, Schema.Struct<{
|
|
452
|
+
exclude: Schema.SchemaClass<string, string, never>;
|
|
453
|
+
}>]>>]>>;
|
|
454
|
+
status_checks: Schema.optional<Schema.Struct<{
|
|
455
|
+
update_branch: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
456
|
+
on_creation: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
457
|
+
default_integration_id: Schema.optional<Schema.Union<[typeof Schema.Int, Schema.Struct<{
|
|
458
|
+
resolved: Schema.SchemaClass<string, string, never>;
|
|
459
|
+
}>]>>;
|
|
460
|
+
required: Schema.Array$<Schema.Struct<{
|
|
461
|
+
context: Schema.SchemaClass<string, string, never>;
|
|
462
|
+
integration_id: Schema.optional<Schema.Union<[typeof Schema.Int, Schema.Struct<{
|
|
463
|
+
resolved: Schema.SchemaClass<string, string, never>;
|
|
464
|
+
}>]>>;
|
|
465
|
+
}>>;
|
|
466
|
+
}>>;
|
|
467
|
+
commit_message: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
468
|
+
operator: Schema.Literal<["starts_with", "ends_with", "contains", "regex"]>;
|
|
469
|
+
pattern: Schema.SchemaClass<string, string, never>;
|
|
470
|
+
name: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
471
|
+
negate: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
472
|
+
}>>>;
|
|
473
|
+
commit_author_email: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
474
|
+
operator: Schema.Literal<["starts_with", "ends_with", "contains", "regex"]>;
|
|
475
|
+
pattern: Schema.SchemaClass<string, string, never>;
|
|
476
|
+
name: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
477
|
+
negate: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
478
|
+
}>>>;
|
|
479
|
+
committer_email: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
480
|
+
operator: Schema.Literal<["starts_with", "ends_with", "contains", "regex"]>;
|
|
481
|
+
pattern: Schema.SchemaClass<string, string, never>;
|
|
482
|
+
name: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
483
|
+
negate: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
484
|
+
}>>>;
|
|
485
|
+
}>]>>, {
|
|
486
|
+
default: () => {};
|
|
487
|
+
}>;
|
|
488
|
+
environments: Schema.optionalWith<Schema.Record$<typeof Schema.String, Schema.Struct<{
|
|
489
|
+
wait_timer: Schema.optional<Schema.refine<number, typeof Schema.Int>>;
|
|
490
|
+
prevent_self_review: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
491
|
+
reviewers: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
492
|
+
type: Schema.Literal<["User", "Team"]>;
|
|
493
|
+
id: Schema.refine<number, typeof Schema.Number>;
|
|
494
|
+
}>>>;
|
|
495
|
+
deployment_branches: Schema.optional<Schema.Union<[Schema.Literal<["all", "protected"]>, Schema.Array$<Schema.Struct<{
|
|
496
|
+
name: Schema.SchemaClass<string, string, never>;
|
|
497
|
+
type: Schema.optionalWith<Schema.Literal<["branch", "tag"]>, {
|
|
498
|
+
default: () => "branch";
|
|
499
|
+
}>;
|
|
500
|
+
}>>]>>;
|
|
501
|
+
}>>, {
|
|
502
|
+
default: () => {};
|
|
503
|
+
}>;
|
|
504
|
+
security: Schema.optionalWith<Schema.Record$<typeof Schema.String, Schema.refine<{
|
|
505
|
+
readonly vulnerability_alerts?: boolean | undefined;
|
|
506
|
+
readonly automated_security_fixes?: boolean | undefined;
|
|
507
|
+
readonly private_vulnerability_reporting?: boolean | undefined;
|
|
508
|
+
}, Schema.Struct<{
|
|
509
|
+
vulnerability_alerts: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
510
|
+
automated_security_fixes: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
511
|
+
private_vulnerability_reporting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
512
|
+
}>>>, {
|
|
513
|
+
default: () => {};
|
|
514
|
+
}>;
|
|
515
|
+
code_scanning: Schema.optionalWith<Schema.Record$<typeof Schema.String, Schema.refine<{
|
|
516
|
+
readonly state?: "configured" | "not-configured" | undefined;
|
|
517
|
+
readonly languages?: readonly ("actions" | "c-cpp" | "csharp" | "go" | "java-kotlin" | "javascript-typescript" | "python" | "ruby" | "swift")[] | undefined;
|
|
518
|
+
readonly query_suite?: "default" | "extended" | undefined;
|
|
519
|
+
readonly threat_model?: "remote" | "remote_and_local" | undefined;
|
|
520
|
+
readonly runner_type?: "standard" | "labeled" | undefined;
|
|
521
|
+
readonly runner_label?: string | undefined;
|
|
522
|
+
}, Schema.Struct<{
|
|
523
|
+
state: Schema.optional<Schema.Literal<["configured", "not-configured"]>>;
|
|
524
|
+
languages: Schema.optional<Schema.Array$<Schema.Literal<["actions", "c-cpp", "csharp", "go", "java-kotlin", "javascript-typescript", "python", "ruby", "swift"]>>>;
|
|
525
|
+
query_suite: Schema.optional<Schema.Literal<["default", "extended"]>>;
|
|
526
|
+
threat_model: Schema.optional<Schema.Literal<["remote", "remote_and_local"]>>;
|
|
527
|
+
runner_type: Schema.optional<Schema.Literal<["standard", "labeled"]>>;
|
|
528
|
+
runner_label: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
529
|
+
}>>>, {
|
|
530
|
+
default: () => {};
|
|
531
|
+
}>;
|
|
532
|
+
groups: Schema.Record$<typeof Schema.String, Schema.Struct<{
|
|
533
|
+
owner: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
534
|
+
repos: Schema.Array$<typeof Schema.String>;
|
|
535
|
+
credentials: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
536
|
+
settings: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
537
|
+
environments: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
538
|
+
secrets: Schema.optional<Schema.Struct<{
|
|
539
|
+
actions: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
540
|
+
dependabot: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
541
|
+
codespaces: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
542
|
+
environments: Schema.optional<Schema.Record$<typeof Schema.String, Schema.Array$<typeof Schema.String>>>;
|
|
543
|
+
}>>;
|
|
544
|
+
variables: Schema.optional<Schema.Struct<{
|
|
545
|
+
actions: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
546
|
+
environments: Schema.optional<Schema.Record$<typeof Schema.String, Schema.Array$<typeof Schema.String>>>;
|
|
547
|
+
}>>;
|
|
548
|
+
rulesets: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
549
|
+
security: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
550
|
+
code_scanning: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
551
|
+
cleanup: Schema.optional<Schema.Struct<{
|
|
552
|
+
secrets: Schema.optionalWith<Schema.Struct<{
|
|
553
|
+
actions: Schema.optionalWith<Schema.Union<[typeof Schema.Boolean, Schema.Struct<{
|
|
554
|
+
preserve: Schema.Array$<typeof Schema.String>;
|
|
555
|
+
}>]>, {
|
|
556
|
+
default: () => CleanupScope;
|
|
557
|
+
}>;
|
|
558
|
+
dependabot: Schema.optionalWith<Schema.Union<[typeof Schema.Boolean, Schema.Struct<{
|
|
559
|
+
preserve: Schema.Array$<typeof Schema.String>;
|
|
560
|
+
}>]>, {
|
|
561
|
+
default: () => CleanupScope;
|
|
562
|
+
}>;
|
|
563
|
+
codespaces: Schema.optionalWith<Schema.Union<[typeof Schema.Boolean, Schema.Struct<{
|
|
564
|
+
preserve: Schema.Array$<typeof Schema.String>;
|
|
565
|
+
}>]>, {
|
|
566
|
+
default: () => CleanupScope;
|
|
567
|
+
}>;
|
|
568
|
+
environments: Schema.optionalWith<Schema.Union<[typeof Schema.Boolean, Schema.Struct<{
|
|
569
|
+
preserve: Schema.Array$<typeof Schema.String>;
|
|
570
|
+
}>]>, {
|
|
571
|
+
default: () => CleanupScope;
|
|
572
|
+
}>;
|
|
573
|
+
}>, {
|
|
574
|
+
default: () => {
|
|
575
|
+
actions: CleanupScope;
|
|
576
|
+
dependabot: CleanupScope;
|
|
577
|
+
codespaces: CleanupScope;
|
|
578
|
+
environments: CleanupScope;
|
|
579
|
+
};
|
|
580
|
+
}>;
|
|
581
|
+
variables: Schema.optionalWith<Schema.Struct<{
|
|
582
|
+
actions: Schema.optionalWith<Schema.Union<[typeof Schema.Boolean, Schema.Struct<{
|
|
583
|
+
preserve: Schema.Array$<typeof Schema.String>;
|
|
584
|
+
}>]>, {
|
|
585
|
+
default: () => CleanupScope;
|
|
586
|
+
}>;
|
|
587
|
+
environments: Schema.optionalWith<Schema.Union<[typeof Schema.Boolean, Schema.Struct<{
|
|
588
|
+
preserve: Schema.Array$<typeof Schema.String>;
|
|
589
|
+
}>]>, {
|
|
590
|
+
default: () => CleanupScope;
|
|
591
|
+
}>;
|
|
592
|
+
}>, {
|
|
593
|
+
default: () => {
|
|
594
|
+
actions: CleanupScope;
|
|
595
|
+
environments: CleanupScope;
|
|
596
|
+
};
|
|
597
|
+
}>;
|
|
598
|
+
rulesets: Schema.optionalWith<Schema.Union<[typeof Schema.Boolean, Schema.Struct<{
|
|
599
|
+
preserve: Schema.Array$<typeof Schema.String>;
|
|
600
|
+
}>]>, {
|
|
601
|
+
default: () => CleanupScope;
|
|
602
|
+
}>;
|
|
603
|
+
environments: Schema.optionalWith<Schema.Union<[typeof Schema.Boolean, Schema.Struct<{
|
|
604
|
+
preserve: Schema.Array$<typeof Schema.String>;
|
|
605
|
+
}>]>, {
|
|
606
|
+
default: () => CleanupScope;
|
|
607
|
+
}>;
|
|
608
|
+
}>>;
|
|
609
|
+
}>>;
|
|
610
|
+
}>;
|
|
611
|
+
type Config = typeof ConfigSchema.Type;
|
|
612
|
+
//#endregion
|
|
613
|
+
//#region src/schemas/credentials.d.ts
|
|
614
|
+
declare const ResolveSectionSchema: Schema.Struct<{
|
|
615
|
+
op: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
|
|
616
|
+
file: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
|
|
617
|
+
value: Schema.optional<Schema.Record$<typeof Schema.String, Schema.Union<[typeof Schema.String, Schema.Record$<typeof Schema.String, Schema.SchemaClass<unknown, unknown, never>>]>>>;
|
|
618
|
+
}>;
|
|
619
|
+
type ResolveSection = typeof ResolveSectionSchema.Type;
|
|
620
|
+
declare const CredentialProfileSchema: Schema.Struct<{
|
|
621
|
+
github_token: Schema.SchemaClass<string, string, never>;
|
|
622
|
+
op_service_account_token: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
623
|
+
resolve: Schema.optional<Schema.Struct<{
|
|
624
|
+
op: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
|
|
625
|
+
file: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
|
|
626
|
+
value: Schema.optional<Schema.Record$<typeof Schema.String, Schema.Union<[typeof Schema.String, Schema.Record$<typeof Schema.String, Schema.SchemaClass<unknown, unknown, never>>]>>>;
|
|
627
|
+
}>>;
|
|
628
|
+
}>;
|
|
629
|
+
type CredentialProfile = typeof CredentialProfileSchema.Type;
|
|
630
|
+
declare const CredentialsSchema: Schema.Struct<{
|
|
631
|
+
profiles: Schema.optionalWith<Schema.Record$<typeof Schema.String, Schema.Struct<{
|
|
632
|
+
github_token: Schema.SchemaClass<string, string, never>;
|
|
633
|
+
op_service_account_token: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
634
|
+
resolve: Schema.optional<Schema.Struct<{
|
|
635
|
+
op: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
|
|
636
|
+
file: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
|
|
637
|
+
value: Schema.optional<Schema.Record$<typeof Schema.String, Schema.Union<[typeof Schema.String, Schema.Record$<typeof Schema.String, Schema.SchemaClass<unknown, unknown, never>>]>>>;
|
|
638
|
+
}>>;
|
|
639
|
+
}>>, {
|
|
640
|
+
default: () => {};
|
|
641
|
+
}>;
|
|
642
|
+
}>;
|
|
643
|
+
type Credentials = typeof CredentialsSchema.Type;
|
|
644
|
+
//#endregion
|
|
645
|
+
//#region src/schemas/ruleset.d.ts
|
|
646
|
+
declare const ResolvedRefSchema: Schema.Struct<{
|
|
647
|
+
resolved: Schema.SchemaClass<string, string, never>;
|
|
648
|
+
}>;
|
|
649
|
+
type ResolvedRef = typeof ResolvedRefSchema.Type;
|
|
650
|
+
declare const BypassActorSchema: Schema.Struct<{
|
|
651
|
+
actor_id: Schema.optional<Schema.Union<[typeof Schema.Int, Schema.Struct<{
|
|
652
|
+
resolved: Schema.SchemaClass<string, string, never>;
|
|
653
|
+
}>]>>;
|
|
654
|
+
actor_type: Schema.Literal<["Integration", "OrganizationAdmin", "RepositoryRole", "Team", "DeployKey"]>;
|
|
655
|
+
bypass_mode: Schema.optionalWith<Schema.Literal<["always", "pull_request", "exempt"]>, {
|
|
656
|
+
default: () => "always";
|
|
657
|
+
}>;
|
|
658
|
+
}>;
|
|
659
|
+
type BypassActor = typeof BypassActorSchema.Type;
|
|
660
|
+
declare const RulesetSchema: Schema.Union<[Schema.Struct<{
|
|
661
|
+
type: Schema.Literal<["branch"]>;
|
|
662
|
+
pull_requests: Schema.optional<Schema.Struct<{
|
|
663
|
+
approvals: Schema.optionalWith<Schema.refine<number, typeof Schema.Int>, {
|
|
664
|
+
default: () => number;
|
|
665
|
+
}>;
|
|
666
|
+
dismiss_stale_reviews: Schema.optionalWith<Schema.SchemaClass<boolean, boolean, never>, {
|
|
667
|
+
default: () => boolean;
|
|
668
|
+
}>;
|
|
669
|
+
code_owner_review: Schema.optionalWith<Schema.SchemaClass<boolean, boolean, never>, {
|
|
670
|
+
default: () => boolean;
|
|
671
|
+
}>;
|
|
672
|
+
last_push_approval: Schema.optionalWith<Schema.SchemaClass<boolean, boolean, never>, {
|
|
673
|
+
default: () => boolean;
|
|
674
|
+
}>;
|
|
675
|
+
resolve_threads: Schema.optionalWith<Schema.SchemaClass<boolean, boolean, never>, {
|
|
676
|
+
default: () => boolean;
|
|
677
|
+
}>;
|
|
678
|
+
merge_methods: Schema.optional<Schema.Array$<Schema.Literal<["merge", "squash", "rebase"]>>>;
|
|
679
|
+
reviewers: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
680
|
+
file_patterns: Schema.Array$<typeof Schema.String>;
|
|
681
|
+
minimum_approvals: Schema.refine<number, typeof Schema.Number>;
|
|
682
|
+
reviewer: Schema.Struct<{
|
|
683
|
+
id: Schema.refine<number, typeof Schema.Number>;
|
|
684
|
+
type: Schema.Literal<["Team"]>;
|
|
685
|
+
}>;
|
|
686
|
+
}>>>;
|
|
687
|
+
}>>;
|
|
688
|
+
merge_queue: Schema.optional<Schema.Struct<{
|
|
689
|
+
check_timeout: Schema.refine<number, typeof Schema.Int>;
|
|
690
|
+
grouping: Schema.Literal<["ALLGREEN", "HEADGREEN"]>;
|
|
691
|
+
max_build: Schema.refine<number, typeof Schema.Int>;
|
|
692
|
+
max_merge: Schema.refine<number, typeof Schema.Int>;
|
|
693
|
+
merge_method: Schema.Literal<["MERGE", "SQUASH", "REBASE"]>;
|
|
694
|
+
min_merge: Schema.refine<number, typeof Schema.Int>;
|
|
695
|
+
min_wait: Schema.refine<number, typeof Schema.Int>;
|
|
696
|
+
}>>;
|
|
697
|
+
copilot_review: Schema.optional<Schema.Struct<{
|
|
698
|
+
draft_prs: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
699
|
+
on_push: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
700
|
+
}>>;
|
|
701
|
+
code_scanning: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
702
|
+
tool: Schema.SchemaClass<string, string, never>;
|
|
703
|
+
alerts: Schema.Literal<["none", "errors", "errors_and_warnings", "all"]>;
|
|
704
|
+
security_alerts: Schema.Literal<["none", "critical", "high_or_higher", "medium_or_higher", "all"]>;
|
|
705
|
+
}>>>;
|
|
706
|
+
workflows: Schema.optional<Schema.Struct<{
|
|
707
|
+
on_creation: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
708
|
+
required: Schema.Array$<Schema.Struct<{
|
|
709
|
+
path: Schema.SchemaClass<string, string, never>;
|
|
710
|
+
ref: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
711
|
+
repository_id: Schema.Union<[typeof Schema.Int, Schema.Struct<{
|
|
712
|
+
resolved: Schema.SchemaClass<string, string, never>;
|
|
713
|
+
}>]>;
|
|
714
|
+
sha: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
715
|
+
}>>;
|
|
716
|
+
}>>;
|
|
717
|
+
branch_name: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
718
|
+
operator: Schema.Literal<["starts_with", "ends_with", "contains", "regex"]>;
|
|
719
|
+
pattern: Schema.SchemaClass<string, string, never>;
|
|
720
|
+
name: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
721
|
+
negate: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
722
|
+
}>>>;
|
|
723
|
+
name: Schema.SchemaClass<string, string, never>;
|
|
724
|
+
enforcement: Schema.Literal<["disabled", "active", "evaluate"]>;
|
|
725
|
+
conditions: Schema.optional<Schema.Struct<{
|
|
726
|
+
ref_name: Schema.optional<Schema.Struct<{
|
|
727
|
+
include: Schema.optionalWith<Schema.Array$<typeof Schema.String>, {
|
|
728
|
+
default: () => never[];
|
|
729
|
+
}>;
|
|
730
|
+
exclude: Schema.optionalWith<Schema.Array$<typeof Schema.String>, {
|
|
731
|
+
default: () => never[];
|
|
732
|
+
}>;
|
|
733
|
+
}>>;
|
|
734
|
+
}>>;
|
|
735
|
+
bypass_actors: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
736
|
+
actor_id: Schema.optional<Schema.Union<[typeof Schema.Int, Schema.Struct<{
|
|
737
|
+
resolved: Schema.SchemaClass<string, string, never>;
|
|
738
|
+
}>]>>;
|
|
739
|
+
actor_type: Schema.Literal<["Integration", "OrganizationAdmin", "RepositoryRole", "Team", "DeployKey"]>;
|
|
740
|
+
bypass_mode: Schema.optionalWith<Schema.Literal<["always", "pull_request", "exempt"]>, {
|
|
741
|
+
default: () => "always";
|
|
742
|
+
}>;
|
|
743
|
+
}>>>;
|
|
744
|
+
creation: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
745
|
+
update: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
746
|
+
deletion: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
747
|
+
required_linear_history: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
748
|
+
required_signatures: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
749
|
+
non_fast_forward: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
750
|
+
deployments: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
751
|
+
targets: Schema.optional<Schema.Union<[Schema.Literal<["default", "all"]>, Schema.Array$<Schema.Union<[Schema.Struct<{
|
|
752
|
+
include: Schema.SchemaClass<string, string, never>;
|
|
753
|
+
}>, Schema.Struct<{
|
|
754
|
+
exclude: Schema.SchemaClass<string, string, never>;
|
|
755
|
+
}>]>>]>>;
|
|
756
|
+
status_checks: Schema.optional<Schema.Struct<{
|
|
757
|
+
update_branch: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
758
|
+
on_creation: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
759
|
+
default_integration_id: Schema.optional<Schema.Union<[typeof Schema.Int, Schema.Struct<{
|
|
760
|
+
resolved: Schema.SchemaClass<string, string, never>;
|
|
761
|
+
}>]>>;
|
|
762
|
+
required: Schema.Array$<Schema.Struct<{
|
|
763
|
+
context: Schema.SchemaClass<string, string, never>;
|
|
764
|
+
integration_id: Schema.optional<Schema.Union<[typeof Schema.Int, Schema.Struct<{
|
|
765
|
+
resolved: Schema.SchemaClass<string, string, never>;
|
|
766
|
+
}>]>>;
|
|
767
|
+
}>>;
|
|
768
|
+
}>>;
|
|
769
|
+
commit_message: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
770
|
+
operator: Schema.Literal<["starts_with", "ends_with", "contains", "regex"]>;
|
|
771
|
+
pattern: Schema.SchemaClass<string, string, never>;
|
|
772
|
+
name: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
773
|
+
negate: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
774
|
+
}>>>;
|
|
775
|
+
commit_author_email: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
776
|
+
operator: Schema.Literal<["starts_with", "ends_with", "contains", "regex"]>;
|
|
777
|
+
pattern: Schema.SchemaClass<string, string, never>;
|
|
778
|
+
name: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
779
|
+
negate: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
780
|
+
}>>>;
|
|
781
|
+
committer_email: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
782
|
+
operator: Schema.Literal<["starts_with", "ends_with", "contains", "regex"]>;
|
|
783
|
+
pattern: Schema.SchemaClass<string, string, never>;
|
|
784
|
+
name: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
785
|
+
negate: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
786
|
+
}>>>;
|
|
787
|
+
}>, Schema.Struct<{
|
|
788
|
+
type: Schema.Literal<["tag"]>;
|
|
789
|
+
tag_name: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
790
|
+
operator: Schema.Literal<["starts_with", "ends_with", "contains", "regex"]>;
|
|
791
|
+
pattern: Schema.SchemaClass<string, string, never>;
|
|
792
|
+
name: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
793
|
+
negate: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
794
|
+
}>>>;
|
|
795
|
+
name: Schema.SchemaClass<string, string, never>;
|
|
796
|
+
enforcement: Schema.Literal<["disabled", "active", "evaluate"]>;
|
|
797
|
+
conditions: Schema.optional<Schema.Struct<{
|
|
798
|
+
ref_name: Schema.optional<Schema.Struct<{
|
|
799
|
+
include: Schema.optionalWith<Schema.Array$<typeof Schema.String>, {
|
|
800
|
+
default: () => never[];
|
|
801
|
+
}>;
|
|
802
|
+
exclude: Schema.optionalWith<Schema.Array$<typeof Schema.String>, {
|
|
803
|
+
default: () => never[];
|
|
804
|
+
}>;
|
|
805
|
+
}>>;
|
|
806
|
+
}>>;
|
|
807
|
+
bypass_actors: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
808
|
+
actor_id: Schema.optional<Schema.Union<[typeof Schema.Int, Schema.Struct<{
|
|
809
|
+
resolved: Schema.SchemaClass<string, string, never>;
|
|
810
|
+
}>]>>;
|
|
811
|
+
actor_type: Schema.Literal<["Integration", "OrganizationAdmin", "RepositoryRole", "Team", "DeployKey"]>;
|
|
812
|
+
bypass_mode: Schema.optionalWith<Schema.Literal<["always", "pull_request", "exempt"]>, {
|
|
813
|
+
default: () => "always";
|
|
814
|
+
}>;
|
|
815
|
+
}>>>;
|
|
816
|
+
creation: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
817
|
+
update: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
818
|
+
deletion: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
819
|
+
required_linear_history: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
820
|
+
required_signatures: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
821
|
+
non_fast_forward: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
822
|
+
deployments: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
823
|
+
targets: Schema.optional<Schema.Union<[Schema.Literal<["default", "all"]>, Schema.Array$<Schema.Union<[Schema.Struct<{
|
|
824
|
+
include: Schema.SchemaClass<string, string, never>;
|
|
825
|
+
}>, Schema.Struct<{
|
|
826
|
+
exclude: Schema.SchemaClass<string, string, never>;
|
|
827
|
+
}>]>>]>>;
|
|
828
|
+
status_checks: Schema.optional<Schema.Struct<{
|
|
829
|
+
update_branch: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
830
|
+
on_creation: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
831
|
+
default_integration_id: Schema.optional<Schema.Union<[typeof Schema.Int, Schema.Struct<{
|
|
832
|
+
resolved: Schema.SchemaClass<string, string, never>;
|
|
833
|
+
}>]>>;
|
|
834
|
+
required: Schema.Array$<Schema.Struct<{
|
|
835
|
+
context: Schema.SchemaClass<string, string, never>;
|
|
836
|
+
integration_id: Schema.optional<Schema.Union<[typeof Schema.Int, Schema.Struct<{
|
|
837
|
+
resolved: Schema.SchemaClass<string, string, never>;
|
|
838
|
+
}>]>>;
|
|
839
|
+
}>>;
|
|
840
|
+
}>>;
|
|
841
|
+
commit_message: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
842
|
+
operator: Schema.Literal<["starts_with", "ends_with", "contains", "regex"]>;
|
|
843
|
+
pattern: Schema.SchemaClass<string, string, never>;
|
|
844
|
+
name: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
845
|
+
negate: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
846
|
+
}>>>;
|
|
847
|
+
commit_author_email: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
848
|
+
operator: Schema.Literal<["starts_with", "ends_with", "contains", "regex"]>;
|
|
849
|
+
pattern: Schema.SchemaClass<string, string, never>;
|
|
850
|
+
name: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
851
|
+
negate: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
852
|
+
}>>>;
|
|
853
|
+
committer_email: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
854
|
+
operator: Schema.Literal<["starts_with", "ends_with", "contains", "regex"]>;
|
|
855
|
+
pattern: Schema.SchemaClass<string, string, never>;
|
|
856
|
+
name: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
857
|
+
negate: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
858
|
+
}>>>;
|
|
859
|
+
}>]>;
|
|
860
|
+
type Ruleset = typeof RulesetSchema.Type;
|
|
861
|
+
/** API-compatible payload for creating/updating a ruleset. */
|
|
862
|
+
interface RulesetPayload {
|
|
863
|
+
name: string;
|
|
864
|
+
target: "branch" | "tag";
|
|
865
|
+
enforcement: "disabled" | "active" | "evaluate";
|
|
866
|
+
conditions?: Record<string, unknown>;
|
|
867
|
+
bypass_actors?: ReadonlyArray<Record<string, unknown>>;
|
|
868
|
+
rules?: ReadonlyArray<Record<string, unknown>>;
|
|
869
|
+
}
|
|
870
|
+
/**
|
|
871
|
+
* Builds an API-compatible ruleset payload from the config-level Ruleset.
|
|
872
|
+
* Converts all shorthand fields into the GitHub API rules array format.
|
|
873
|
+
*/
|
|
874
|
+
declare function buildRulesetPayload(ruleset: Ruleset): RulesetPayload;
|
|
875
|
+
//#endregion
|
|
876
|
+
//#region src/services/ConfigFiles.d.ts
|
|
877
|
+
declare const CONFIG_FILENAME = "reposets.config.toml";
|
|
878
|
+
declare const CREDENTIALS_FILENAME = "reposets.credentials.toml";
|
|
879
|
+
declare const ReposetsConfigFile: import("effect/Context").Tag<import("xdg-effect").ConfigFileService<{
|
|
880
|
+
readonly environments: {
|
|
881
|
+
readonly [x: string]: {
|
|
882
|
+
readonly reviewers?: readonly {
|
|
883
|
+
readonly type: "Team" | "User";
|
|
884
|
+
readonly id: number;
|
|
885
|
+
}[] | undefined;
|
|
886
|
+
readonly wait_timer?: number | undefined;
|
|
887
|
+
readonly prevent_self_review?: boolean | undefined;
|
|
888
|
+
readonly deployment_branches?: "all" | "protected" | readonly {
|
|
889
|
+
readonly name: string;
|
|
890
|
+
readonly type: "branch" | "tag";
|
|
891
|
+
}[] | undefined;
|
|
892
|
+
};
|
|
893
|
+
};
|
|
894
|
+
readonly secrets: {
|
|
895
|
+
readonly [x: string]: {
|
|
896
|
+
readonly file: {
|
|
897
|
+
readonly [x: string]: string;
|
|
898
|
+
};
|
|
899
|
+
} | {
|
|
900
|
+
readonly value: {
|
|
901
|
+
readonly [x: string]: string | {
|
|
902
|
+
readonly [x: string]: unknown;
|
|
903
|
+
};
|
|
904
|
+
};
|
|
905
|
+
} | {
|
|
906
|
+
readonly resolved: {
|
|
907
|
+
readonly [x: string]: string;
|
|
908
|
+
};
|
|
909
|
+
};
|
|
910
|
+
};
|
|
911
|
+
readonly variables: {
|
|
912
|
+
readonly [x: string]: {
|
|
913
|
+
readonly file: {
|
|
914
|
+
readonly [x: string]: string;
|
|
915
|
+
};
|
|
916
|
+
} | {
|
|
917
|
+
readonly value: {
|
|
918
|
+
readonly [x: string]: string | {
|
|
919
|
+
readonly [x: string]: unknown;
|
|
920
|
+
};
|
|
921
|
+
};
|
|
922
|
+
} | {
|
|
923
|
+
readonly resolved: {
|
|
924
|
+
readonly [x: string]: string;
|
|
925
|
+
};
|
|
926
|
+
};
|
|
927
|
+
};
|
|
928
|
+
readonly rulesets: {
|
|
929
|
+
readonly [x: string]: {
|
|
930
|
+
readonly name: string;
|
|
931
|
+
readonly code_scanning?: readonly {
|
|
932
|
+
readonly tool: string;
|
|
933
|
+
readonly alerts: "all" | "none" | "errors" | "errors_and_warnings";
|
|
934
|
+
readonly security_alerts: "all" | "none" | "critical" | "high_or_higher" | "medium_or_higher";
|
|
935
|
+
}[] | undefined;
|
|
936
|
+
readonly type: "branch";
|
|
937
|
+
readonly pull_requests?: {
|
|
938
|
+
readonly approvals: number;
|
|
939
|
+
readonly dismiss_stale_reviews: boolean;
|
|
940
|
+
readonly code_owner_review: boolean;
|
|
941
|
+
readonly last_push_approval: boolean;
|
|
942
|
+
readonly resolve_threads: boolean;
|
|
943
|
+
readonly merge_methods?: readonly ("merge" | "squash" | "rebase")[] | undefined;
|
|
944
|
+
readonly reviewers?: readonly {
|
|
945
|
+
readonly file_patterns: readonly string[];
|
|
946
|
+
readonly minimum_approvals: number;
|
|
947
|
+
readonly reviewer: {
|
|
948
|
+
readonly type: "Team";
|
|
949
|
+
readonly id: number;
|
|
950
|
+
};
|
|
951
|
+
}[] | undefined;
|
|
952
|
+
} | undefined;
|
|
953
|
+
readonly merge_queue?: {
|
|
954
|
+
readonly check_timeout: number;
|
|
955
|
+
readonly grouping: "ALLGREEN" | "HEADGREEN";
|
|
956
|
+
readonly max_build: number;
|
|
957
|
+
readonly max_merge: number;
|
|
958
|
+
readonly merge_method: "MERGE" | "SQUASH" | "REBASE";
|
|
959
|
+
readonly min_merge: number;
|
|
960
|
+
readonly min_wait: number;
|
|
961
|
+
} | undefined;
|
|
962
|
+
readonly copilot_review?: {
|
|
963
|
+
readonly draft_prs?: boolean | undefined;
|
|
964
|
+
readonly on_push?: boolean | undefined;
|
|
965
|
+
} | undefined;
|
|
966
|
+
readonly workflows?: {
|
|
967
|
+
readonly on_creation?: boolean | undefined;
|
|
968
|
+
readonly required: readonly {
|
|
969
|
+
readonly path: string;
|
|
970
|
+
readonly ref?: string | undefined;
|
|
971
|
+
readonly repository_id: number | {
|
|
972
|
+
readonly resolved: string;
|
|
973
|
+
};
|
|
974
|
+
readonly sha?: string | undefined;
|
|
975
|
+
}[];
|
|
976
|
+
} | undefined;
|
|
977
|
+
readonly branch_name?: readonly {
|
|
978
|
+
readonly name?: string | undefined;
|
|
979
|
+
readonly operator: "starts_with" | "ends_with" | "contains" | "regex";
|
|
980
|
+
readonly pattern: string;
|
|
981
|
+
readonly negate?: boolean | undefined;
|
|
982
|
+
}[] | undefined;
|
|
983
|
+
readonly enforcement: "disabled" | "active" | "evaluate";
|
|
984
|
+
readonly conditions?: {
|
|
985
|
+
readonly ref_name?: {
|
|
986
|
+
readonly include: readonly string[];
|
|
987
|
+
readonly exclude: readonly string[];
|
|
988
|
+
} | undefined;
|
|
989
|
+
} | undefined;
|
|
990
|
+
readonly bypass_actors?: readonly {
|
|
991
|
+
readonly actor_id?: number | {
|
|
992
|
+
readonly resolved: string;
|
|
993
|
+
} | undefined;
|
|
994
|
+
readonly actor_type: "Integration" | "OrganizationAdmin" | "RepositoryRole" | "Team" | "DeployKey";
|
|
995
|
+
readonly bypass_mode: "always" | "pull_request" | "exempt";
|
|
996
|
+
}[] | undefined;
|
|
997
|
+
readonly creation?: boolean | undefined;
|
|
998
|
+
readonly update?: boolean | undefined;
|
|
999
|
+
readonly deletion?: boolean | undefined;
|
|
1000
|
+
readonly required_linear_history?: boolean | undefined;
|
|
1001
|
+
readonly required_signatures?: boolean | undefined;
|
|
1002
|
+
readonly non_fast_forward?: boolean | undefined;
|
|
1003
|
+
readonly deployments?: readonly string[] | undefined;
|
|
1004
|
+
readonly targets?: "default" | "all" | readonly ({
|
|
1005
|
+
readonly include: string;
|
|
1006
|
+
} | {
|
|
1007
|
+
readonly exclude: string;
|
|
1008
|
+
})[] | undefined;
|
|
1009
|
+
readonly status_checks?: {
|
|
1010
|
+
readonly update_branch?: boolean | undefined;
|
|
1011
|
+
readonly on_creation?: boolean | undefined;
|
|
1012
|
+
readonly default_integration_id?: number | {
|
|
1013
|
+
readonly resolved: string;
|
|
1014
|
+
} | undefined;
|
|
1015
|
+
readonly required: readonly {
|
|
1016
|
+
readonly context: string;
|
|
1017
|
+
readonly integration_id?: number | {
|
|
1018
|
+
readonly resolved: string;
|
|
1019
|
+
} | undefined;
|
|
1020
|
+
}[];
|
|
1021
|
+
} | undefined;
|
|
1022
|
+
readonly commit_message?: readonly {
|
|
1023
|
+
readonly name?: string | undefined;
|
|
1024
|
+
readonly operator: "starts_with" | "ends_with" | "contains" | "regex";
|
|
1025
|
+
readonly pattern: string;
|
|
1026
|
+
readonly negate?: boolean | undefined;
|
|
1027
|
+
}[] | undefined;
|
|
1028
|
+
readonly commit_author_email?: readonly {
|
|
1029
|
+
readonly name?: string | undefined;
|
|
1030
|
+
readonly operator: "starts_with" | "ends_with" | "contains" | "regex";
|
|
1031
|
+
readonly pattern: string;
|
|
1032
|
+
readonly negate?: boolean | undefined;
|
|
1033
|
+
}[] | undefined;
|
|
1034
|
+
readonly committer_email?: readonly {
|
|
1035
|
+
readonly name?: string | undefined;
|
|
1036
|
+
readonly operator: "starts_with" | "ends_with" | "contains" | "regex";
|
|
1037
|
+
readonly pattern: string;
|
|
1038
|
+
readonly negate?: boolean | undefined;
|
|
1039
|
+
}[] | undefined;
|
|
1040
|
+
} | {
|
|
1041
|
+
readonly name: string;
|
|
1042
|
+
readonly type: "tag";
|
|
1043
|
+
readonly enforcement: "disabled" | "active" | "evaluate";
|
|
1044
|
+
readonly conditions?: {
|
|
1045
|
+
readonly ref_name?: {
|
|
1046
|
+
readonly include: readonly string[];
|
|
1047
|
+
readonly exclude: readonly string[];
|
|
1048
|
+
} | undefined;
|
|
1049
|
+
} | undefined;
|
|
1050
|
+
readonly bypass_actors?: readonly {
|
|
1051
|
+
readonly actor_id?: number | {
|
|
1052
|
+
readonly resolved: string;
|
|
1053
|
+
} | undefined;
|
|
1054
|
+
readonly actor_type: "Integration" | "OrganizationAdmin" | "RepositoryRole" | "Team" | "DeployKey";
|
|
1055
|
+
readonly bypass_mode: "always" | "pull_request" | "exempt";
|
|
1056
|
+
}[] | undefined;
|
|
1057
|
+
readonly creation?: boolean | undefined;
|
|
1058
|
+
readonly update?: boolean | undefined;
|
|
1059
|
+
readonly deletion?: boolean | undefined;
|
|
1060
|
+
readonly required_linear_history?: boolean | undefined;
|
|
1061
|
+
readonly required_signatures?: boolean | undefined;
|
|
1062
|
+
readonly non_fast_forward?: boolean | undefined;
|
|
1063
|
+
readonly deployments?: readonly string[] | undefined;
|
|
1064
|
+
readonly targets?: "default" | "all" | readonly ({
|
|
1065
|
+
readonly include: string;
|
|
1066
|
+
} | {
|
|
1067
|
+
readonly exclude: string;
|
|
1068
|
+
})[] | undefined;
|
|
1069
|
+
readonly status_checks?: {
|
|
1070
|
+
readonly update_branch?: boolean | undefined;
|
|
1071
|
+
readonly on_creation?: boolean | undefined;
|
|
1072
|
+
readonly default_integration_id?: number | {
|
|
1073
|
+
readonly resolved: string;
|
|
1074
|
+
} | undefined;
|
|
1075
|
+
readonly required: readonly {
|
|
1076
|
+
readonly context: string;
|
|
1077
|
+
readonly integration_id?: number | {
|
|
1078
|
+
readonly resolved: string;
|
|
1079
|
+
} | undefined;
|
|
1080
|
+
}[];
|
|
1081
|
+
} | undefined;
|
|
1082
|
+
readonly commit_message?: readonly {
|
|
1083
|
+
readonly name?: string | undefined;
|
|
1084
|
+
readonly operator: "starts_with" | "ends_with" | "contains" | "regex";
|
|
1085
|
+
readonly pattern: string;
|
|
1086
|
+
readonly negate?: boolean | undefined;
|
|
1087
|
+
}[] | undefined;
|
|
1088
|
+
readonly commit_author_email?: readonly {
|
|
1089
|
+
readonly name?: string | undefined;
|
|
1090
|
+
readonly operator: "starts_with" | "ends_with" | "contains" | "regex";
|
|
1091
|
+
readonly pattern: string;
|
|
1092
|
+
readonly negate?: boolean | undefined;
|
|
1093
|
+
}[] | undefined;
|
|
1094
|
+
readonly committer_email?: readonly {
|
|
1095
|
+
readonly name?: string | undefined;
|
|
1096
|
+
readonly operator: "starts_with" | "ends_with" | "contains" | "regex";
|
|
1097
|
+
readonly pattern: string;
|
|
1098
|
+
readonly negate?: boolean | undefined;
|
|
1099
|
+
}[] | undefined;
|
|
1100
|
+
readonly tag_name?: readonly {
|
|
1101
|
+
readonly name?: string | undefined;
|
|
1102
|
+
readonly operator: "starts_with" | "ends_with" | "contains" | "regex";
|
|
1103
|
+
readonly pattern: string;
|
|
1104
|
+
readonly negate?: boolean | undefined;
|
|
1105
|
+
}[] | undefined;
|
|
1106
|
+
};
|
|
1107
|
+
};
|
|
1108
|
+
readonly owner?: string | undefined;
|
|
1109
|
+
readonly settings: {
|
|
1110
|
+
readonly [x: string]: {
|
|
1111
|
+
readonly [x: string]: unknown;
|
|
1112
|
+
readonly is_template?: boolean | undefined;
|
|
1113
|
+
readonly has_wiki?: boolean | undefined;
|
|
1114
|
+
readonly has_issues?: boolean | undefined;
|
|
1115
|
+
readonly has_projects?: boolean | undefined;
|
|
1116
|
+
readonly has_discussions?: boolean | undefined;
|
|
1117
|
+
readonly has_sponsorships?: boolean | undefined;
|
|
1118
|
+
readonly has_pull_requests?: boolean | undefined;
|
|
1119
|
+
readonly allow_forking?: boolean | undefined;
|
|
1120
|
+
readonly allow_merge_commit?: boolean | undefined;
|
|
1121
|
+
readonly allow_squash_merge?: boolean | undefined;
|
|
1122
|
+
readonly allow_rebase_merge?: boolean | undefined;
|
|
1123
|
+
readonly allow_auto_merge?: boolean | undefined;
|
|
1124
|
+
readonly allow_update_branch?: boolean | undefined;
|
|
1125
|
+
readonly squash_merge_commit_title?: "PR_TITLE" | "COMMIT_OR_PR_TITLE" | undefined;
|
|
1126
|
+
readonly squash_merge_commit_message?: "PR_BODY" | "COMMIT_MESSAGES" | "BLANK" | undefined;
|
|
1127
|
+
readonly merge_commit_title?: "PR_TITLE" | "MERGE_MESSAGE" | undefined;
|
|
1128
|
+
readonly merge_commit_message?: "PR_TITLE" | "PR_BODY" | "BLANK" | undefined;
|
|
1129
|
+
readonly delete_branch_on_merge?: boolean | undefined;
|
|
1130
|
+
readonly web_commit_signoff_required?: boolean | undefined;
|
|
1131
|
+
readonly security_and_analysis?: {
|
|
1132
|
+
readonly advanced_security?: "enabled" | "disabled" | undefined;
|
|
1133
|
+
readonly code_security?: "enabled" | "disabled" | undefined;
|
|
1134
|
+
readonly secret_scanning?: "enabled" | "disabled" | undefined;
|
|
1135
|
+
readonly secret_scanning_push_protection?: "enabled" | "disabled" | undefined;
|
|
1136
|
+
readonly secret_scanning_ai_detection?: "enabled" | "disabled" | undefined;
|
|
1137
|
+
readonly secret_scanning_non_provider_patterns?: "enabled" | "disabled" | undefined;
|
|
1138
|
+
readonly secret_scanning_delegated_alert_dismissal?: "enabled" | "disabled" | undefined;
|
|
1139
|
+
readonly secret_scanning_delegated_bypass?: "enabled" | "disabled" | undefined;
|
|
1140
|
+
readonly delegated_bypass_reviewers?: readonly ({
|
|
1141
|
+
readonly team: string;
|
|
1142
|
+
readonly mode?: "ALWAYS" | "EXEMPT" | undefined;
|
|
1143
|
+
} | {
|
|
1144
|
+
readonly mode?: "ALWAYS" | "EXEMPT" | undefined;
|
|
1145
|
+
readonly role: string;
|
|
1146
|
+
})[] | undefined;
|
|
1147
|
+
readonly dependabot_security_updates?: "enabled" | "disabled" | undefined;
|
|
1148
|
+
} | undefined;
|
|
1149
|
+
};
|
|
1150
|
+
};
|
|
1151
|
+
readonly security: {
|
|
1152
|
+
readonly [x: string]: {
|
|
1153
|
+
readonly vulnerability_alerts?: boolean | undefined;
|
|
1154
|
+
readonly automated_security_fixes?: boolean | undefined;
|
|
1155
|
+
readonly private_vulnerability_reporting?: boolean | undefined;
|
|
1156
|
+
};
|
|
1157
|
+
};
|
|
1158
|
+
readonly code_scanning: {
|
|
1159
|
+
readonly [x: string]: {
|
|
1160
|
+
readonly state?: "configured" | "not-configured" | undefined;
|
|
1161
|
+
readonly languages?: readonly ("actions" | "c-cpp" | "csharp" | "go" | "java-kotlin" | "javascript-typescript" | "python" | "ruby" | "swift")[] | undefined;
|
|
1162
|
+
readonly query_suite?: "default" | "extended" | undefined;
|
|
1163
|
+
readonly threat_model?: "remote" | "remote_and_local" | undefined;
|
|
1164
|
+
readonly runner_type?: "standard" | "labeled" | undefined;
|
|
1165
|
+
readonly runner_label?: string | undefined;
|
|
1166
|
+
};
|
|
1167
|
+
};
|
|
1168
|
+
readonly log_level: "silent" | "info" | "verbose" | "debug";
|
|
1169
|
+
readonly groups: {
|
|
1170
|
+
readonly [x: string]: {
|
|
1171
|
+
readonly environments?: readonly string[] | undefined;
|
|
1172
|
+
readonly secrets?: {
|
|
1173
|
+
readonly actions?: readonly string[] | undefined;
|
|
1174
|
+
readonly dependabot?: readonly string[] | undefined;
|
|
1175
|
+
readonly codespaces?: readonly string[] | undefined;
|
|
1176
|
+
readonly environments?: {
|
|
1177
|
+
readonly [x: string]: readonly string[];
|
|
1178
|
+
} | undefined;
|
|
1179
|
+
} | undefined;
|
|
1180
|
+
readonly variables?: {
|
|
1181
|
+
readonly actions?: readonly string[] | undefined;
|
|
1182
|
+
readonly environments?: {
|
|
1183
|
+
readonly [x: string]: readonly string[];
|
|
1184
|
+
} | undefined;
|
|
1185
|
+
} | undefined;
|
|
1186
|
+
readonly rulesets?: readonly string[] | undefined;
|
|
1187
|
+
readonly owner?: string | undefined;
|
|
1188
|
+
readonly repos: readonly string[];
|
|
1189
|
+
readonly credentials?: string | undefined;
|
|
1190
|
+
readonly settings?: readonly string[] | undefined;
|
|
1191
|
+
readonly security?: readonly string[] | undefined;
|
|
1192
|
+
readonly code_scanning?: readonly string[] | undefined;
|
|
1193
|
+
readonly cleanup?: {
|
|
1194
|
+
readonly environments: boolean | {
|
|
1195
|
+
readonly preserve: readonly string[];
|
|
1196
|
+
};
|
|
1197
|
+
readonly secrets: {
|
|
1198
|
+
readonly actions: boolean | {
|
|
1199
|
+
readonly preserve: readonly string[];
|
|
1200
|
+
};
|
|
1201
|
+
readonly dependabot: boolean | {
|
|
1202
|
+
readonly preserve: readonly string[];
|
|
1203
|
+
};
|
|
1204
|
+
readonly codespaces: boolean | {
|
|
1205
|
+
readonly preserve: readonly string[];
|
|
1206
|
+
};
|
|
1207
|
+
readonly environments: boolean | {
|
|
1208
|
+
readonly preserve: readonly string[];
|
|
1209
|
+
};
|
|
1210
|
+
};
|
|
1211
|
+
readonly variables: {
|
|
1212
|
+
readonly actions: boolean | {
|
|
1213
|
+
readonly preserve: readonly string[];
|
|
1214
|
+
};
|
|
1215
|
+
readonly environments: boolean | {
|
|
1216
|
+
readonly preserve: readonly string[];
|
|
1217
|
+
};
|
|
1218
|
+
};
|
|
1219
|
+
readonly rulesets: boolean | {
|
|
1220
|
+
readonly preserve: readonly string[];
|
|
1221
|
+
};
|
|
1222
|
+
} | undefined;
|
|
1223
|
+
};
|
|
1224
|
+
};
|
|
1225
|
+
}>, import("xdg-effect").ConfigFileService<{
|
|
1226
|
+
readonly environments: {
|
|
1227
|
+
readonly [x: string]: {
|
|
1228
|
+
readonly reviewers?: readonly {
|
|
1229
|
+
readonly type: "Team" | "User";
|
|
1230
|
+
readonly id: number;
|
|
1231
|
+
}[] | undefined;
|
|
1232
|
+
readonly wait_timer?: number | undefined;
|
|
1233
|
+
readonly prevent_self_review?: boolean | undefined;
|
|
1234
|
+
readonly deployment_branches?: "all" | "protected" | readonly {
|
|
1235
|
+
readonly name: string;
|
|
1236
|
+
readonly type: "branch" | "tag";
|
|
1237
|
+
}[] | undefined;
|
|
1238
|
+
};
|
|
1239
|
+
};
|
|
1240
|
+
readonly secrets: {
|
|
1241
|
+
readonly [x: string]: {
|
|
1242
|
+
readonly file: {
|
|
1243
|
+
readonly [x: string]: string;
|
|
1244
|
+
};
|
|
1245
|
+
} | {
|
|
1246
|
+
readonly value: {
|
|
1247
|
+
readonly [x: string]: string | {
|
|
1248
|
+
readonly [x: string]: unknown;
|
|
1249
|
+
};
|
|
1250
|
+
};
|
|
1251
|
+
} | {
|
|
1252
|
+
readonly resolved: {
|
|
1253
|
+
readonly [x: string]: string;
|
|
1254
|
+
};
|
|
1255
|
+
};
|
|
1256
|
+
};
|
|
1257
|
+
readonly variables: {
|
|
1258
|
+
readonly [x: string]: {
|
|
1259
|
+
readonly file: {
|
|
1260
|
+
readonly [x: string]: string;
|
|
1261
|
+
};
|
|
1262
|
+
} | {
|
|
1263
|
+
readonly value: {
|
|
1264
|
+
readonly [x: string]: string | {
|
|
1265
|
+
readonly [x: string]: unknown;
|
|
1266
|
+
};
|
|
1267
|
+
};
|
|
1268
|
+
} | {
|
|
1269
|
+
readonly resolved: {
|
|
1270
|
+
readonly [x: string]: string;
|
|
1271
|
+
};
|
|
1272
|
+
};
|
|
1273
|
+
};
|
|
1274
|
+
readonly rulesets: {
|
|
1275
|
+
readonly [x: string]: {
|
|
1276
|
+
readonly name: string;
|
|
1277
|
+
readonly code_scanning?: readonly {
|
|
1278
|
+
readonly tool: string;
|
|
1279
|
+
readonly alerts: "all" | "none" | "errors" | "errors_and_warnings";
|
|
1280
|
+
readonly security_alerts: "all" | "none" | "critical" | "high_or_higher" | "medium_or_higher";
|
|
1281
|
+
}[] | undefined;
|
|
1282
|
+
readonly type: "branch";
|
|
1283
|
+
readonly pull_requests?: {
|
|
1284
|
+
readonly approvals: number;
|
|
1285
|
+
readonly dismiss_stale_reviews: boolean;
|
|
1286
|
+
readonly code_owner_review: boolean;
|
|
1287
|
+
readonly last_push_approval: boolean;
|
|
1288
|
+
readonly resolve_threads: boolean;
|
|
1289
|
+
readonly merge_methods?: readonly ("merge" | "squash" | "rebase")[] | undefined;
|
|
1290
|
+
readonly reviewers?: readonly {
|
|
1291
|
+
readonly file_patterns: readonly string[];
|
|
1292
|
+
readonly minimum_approvals: number;
|
|
1293
|
+
readonly reviewer: {
|
|
1294
|
+
readonly type: "Team";
|
|
1295
|
+
readonly id: number;
|
|
1296
|
+
};
|
|
1297
|
+
}[] | undefined;
|
|
1298
|
+
} | undefined;
|
|
1299
|
+
readonly merge_queue?: {
|
|
1300
|
+
readonly check_timeout: number;
|
|
1301
|
+
readonly grouping: "ALLGREEN" | "HEADGREEN";
|
|
1302
|
+
readonly max_build: number;
|
|
1303
|
+
readonly max_merge: number;
|
|
1304
|
+
readonly merge_method: "MERGE" | "SQUASH" | "REBASE";
|
|
1305
|
+
readonly min_merge: number;
|
|
1306
|
+
readonly min_wait: number;
|
|
1307
|
+
} | undefined;
|
|
1308
|
+
readonly copilot_review?: {
|
|
1309
|
+
readonly draft_prs?: boolean | undefined;
|
|
1310
|
+
readonly on_push?: boolean | undefined;
|
|
1311
|
+
} | undefined;
|
|
1312
|
+
readonly workflows?: {
|
|
1313
|
+
readonly on_creation?: boolean | undefined;
|
|
1314
|
+
readonly required: readonly {
|
|
1315
|
+
readonly path: string;
|
|
1316
|
+
readonly ref?: string | undefined;
|
|
1317
|
+
readonly repository_id: number | {
|
|
1318
|
+
readonly resolved: string;
|
|
1319
|
+
};
|
|
1320
|
+
readonly sha?: string | undefined;
|
|
1321
|
+
}[];
|
|
1322
|
+
} | undefined;
|
|
1323
|
+
readonly branch_name?: readonly {
|
|
1324
|
+
readonly name?: string | undefined;
|
|
1325
|
+
readonly operator: "starts_with" | "ends_with" | "contains" | "regex";
|
|
1326
|
+
readonly pattern: string;
|
|
1327
|
+
readonly negate?: boolean | undefined;
|
|
1328
|
+
}[] | undefined;
|
|
1329
|
+
readonly enforcement: "disabled" | "active" | "evaluate";
|
|
1330
|
+
readonly conditions?: {
|
|
1331
|
+
readonly ref_name?: {
|
|
1332
|
+
readonly include: readonly string[];
|
|
1333
|
+
readonly exclude: readonly string[];
|
|
1334
|
+
} | undefined;
|
|
1335
|
+
} | undefined;
|
|
1336
|
+
readonly bypass_actors?: readonly {
|
|
1337
|
+
readonly actor_id?: number | {
|
|
1338
|
+
readonly resolved: string;
|
|
1339
|
+
} | undefined;
|
|
1340
|
+
readonly actor_type: "Integration" | "OrganizationAdmin" | "RepositoryRole" | "Team" | "DeployKey";
|
|
1341
|
+
readonly bypass_mode: "always" | "pull_request" | "exempt";
|
|
1342
|
+
}[] | undefined;
|
|
1343
|
+
readonly creation?: boolean | undefined;
|
|
1344
|
+
readonly update?: boolean | undefined;
|
|
1345
|
+
readonly deletion?: boolean | undefined;
|
|
1346
|
+
readonly required_linear_history?: boolean | undefined;
|
|
1347
|
+
readonly required_signatures?: boolean | undefined;
|
|
1348
|
+
readonly non_fast_forward?: boolean | undefined;
|
|
1349
|
+
readonly deployments?: readonly string[] | undefined;
|
|
1350
|
+
readonly targets?: "default" | "all" | readonly ({
|
|
1351
|
+
readonly include: string;
|
|
1352
|
+
} | {
|
|
1353
|
+
readonly exclude: string;
|
|
1354
|
+
})[] | undefined;
|
|
1355
|
+
readonly status_checks?: {
|
|
1356
|
+
readonly update_branch?: boolean | undefined;
|
|
1357
|
+
readonly on_creation?: boolean | undefined;
|
|
1358
|
+
readonly default_integration_id?: number | {
|
|
1359
|
+
readonly resolved: string;
|
|
1360
|
+
} | undefined;
|
|
1361
|
+
readonly required: readonly {
|
|
1362
|
+
readonly context: string;
|
|
1363
|
+
readonly integration_id?: number | {
|
|
1364
|
+
readonly resolved: string;
|
|
1365
|
+
} | undefined;
|
|
1366
|
+
}[];
|
|
1367
|
+
} | undefined;
|
|
1368
|
+
readonly commit_message?: readonly {
|
|
1369
|
+
readonly name?: string | undefined;
|
|
1370
|
+
readonly operator: "starts_with" | "ends_with" | "contains" | "regex";
|
|
1371
|
+
readonly pattern: string;
|
|
1372
|
+
readonly negate?: boolean | undefined;
|
|
1373
|
+
}[] | undefined;
|
|
1374
|
+
readonly commit_author_email?: readonly {
|
|
1375
|
+
readonly name?: string | undefined;
|
|
1376
|
+
readonly operator: "starts_with" | "ends_with" | "contains" | "regex";
|
|
1377
|
+
readonly pattern: string;
|
|
1378
|
+
readonly negate?: boolean | undefined;
|
|
1379
|
+
}[] | undefined;
|
|
1380
|
+
readonly committer_email?: readonly {
|
|
1381
|
+
readonly name?: string | undefined;
|
|
1382
|
+
readonly operator: "starts_with" | "ends_with" | "contains" | "regex";
|
|
1383
|
+
readonly pattern: string;
|
|
1384
|
+
readonly negate?: boolean | undefined;
|
|
1385
|
+
}[] | undefined;
|
|
1386
|
+
} | {
|
|
1387
|
+
readonly name: string;
|
|
1388
|
+
readonly type: "tag";
|
|
1389
|
+
readonly enforcement: "disabled" | "active" | "evaluate";
|
|
1390
|
+
readonly conditions?: {
|
|
1391
|
+
readonly ref_name?: {
|
|
1392
|
+
readonly include: readonly string[];
|
|
1393
|
+
readonly exclude: readonly string[];
|
|
1394
|
+
} | undefined;
|
|
1395
|
+
} | undefined;
|
|
1396
|
+
readonly bypass_actors?: readonly {
|
|
1397
|
+
readonly actor_id?: number | {
|
|
1398
|
+
readonly resolved: string;
|
|
1399
|
+
} | undefined;
|
|
1400
|
+
readonly actor_type: "Integration" | "OrganizationAdmin" | "RepositoryRole" | "Team" | "DeployKey";
|
|
1401
|
+
readonly bypass_mode: "always" | "pull_request" | "exempt";
|
|
1402
|
+
}[] | undefined;
|
|
1403
|
+
readonly creation?: boolean | undefined;
|
|
1404
|
+
readonly update?: boolean | undefined;
|
|
1405
|
+
readonly deletion?: boolean | undefined;
|
|
1406
|
+
readonly required_linear_history?: boolean | undefined;
|
|
1407
|
+
readonly required_signatures?: boolean | undefined;
|
|
1408
|
+
readonly non_fast_forward?: boolean | undefined;
|
|
1409
|
+
readonly deployments?: readonly string[] | undefined;
|
|
1410
|
+
readonly targets?: "default" | "all" | readonly ({
|
|
1411
|
+
readonly include: string;
|
|
1412
|
+
} | {
|
|
1413
|
+
readonly exclude: string;
|
|
1414
|
+
})[] | undefined;
|
|
1415
|
+
readonly status_checks?: {
|
|
1416
|
+
readonly update_branch?: boolean | undefined;
|
|
1417
|
+
readonly on_creation?: boolean | undefined;
|
|
1418
|
+
readonly default_integration_id?: number | {
|
|
1419
|
+
readonly resolved: string;
|
|
1420
|
+
} | undefined;
|
|
1421
|
+
readonly required: readonly {
|
|
1422
|
+
readonly context: string;
|
|
1423
|
+
readonly integration_id?: number | {
|
|
1424
|
+
readonly resolved: string;
|
|
1425
|
+
} | undefined;
|
|
1426
|
+
}[];
|
|
1427
|
+
} | undefined;
|
|
1428
|
+
readonly commit_message?: readonly {
|
|
1429
|
+
readonly name?: string | undefined;
|
|
1430
|
+
readonly operator: "starts_with" | "ends_with" | "contains" | "regex";
|
|
1431
|
+
readonly pattern: string;
|
|
1432
|
+
readonly negate?: boolean | undefined;
|
|
1433
|
+
}[] | undefined;
|
|
1434
|
+
readonly commit_author_email?: readonly {
|
|
1435
|
+
readonly name?: string | undefined;
|
|
1436
|
+
readonly operator: "starts_with" | "ends_with" | "contains" | "regex";
|
|
1437
|
+
readonly pattern: string;
|
|
1438
|
+
readonly negate?: boolean | undefined;
|
|
1439
|
+
}[] | undefined;
|
|
1440
|
+
readonly committer_email?: readonly {
|
|
1441
|
+
readonly name?: string | undefined;
|
|
1442
|
+
readonly operator: "starts_with" | "ends_with" | "contains" | "regex";
|
|
1443
|
+
readonly pattern: string;
|
|
1444
|
+
readonly negate?: boolean | undefined;
|
|
1445
|
+
}[] | undefined;
|
|
1446
|
+
readonly tag_name?: readonly {
|
|
1447
|
+
readonly name?: string | undefined;
|
|
1448
|
+
readonly operator: "starts_with" | "ends_with" | "contains" | "regex";
|
|
1449
|
+
readonly pattern: string;
|
|
1450
|
+
readonly negate?: boolean | undefined;
|
|
1451
|
+
}[] | undefined;
|
|
1452
|
+
};
|
|
1453
|
+
};
|
|
1454
|
+
readonly owner?: string | undefined;
|
|
1455
|
+
readonly settings: {
|
|
1456
|
+
readonly [x: string]: {
|
|
1457
|
+
readonly [x: string]: unknown;
|
|
1458
|
+
readonly is_template?: boolean | undefined;
|
|
1459
|
+
readonly has_wiki?: boolean | undefined;
|
|
1460
|
+
readonly has_issues?: boolean | undefined;
|
|
1461
|
+
readonly has_projects?: boolean | undefined;
|
|
1462
|
+
readonly has_discussions?: boolean | undefined;
|
|
1463
|
+
readonly has_sponsorships?: boolean | undefined;
|
|
1464
|
+
readonly has_pull_requests?: boolean | undefined;
|
|
1465
|
+
readonly allow_forking?: boolean | undefined;
|
|
1466
|
+
readonly allow_merge_commit?: boolean | undefined;
|
|
1467
|
+
readonly allow_squash_merge?: boolean | undefined;
|
|
1468
|
+
readonly allow_rebase_merge?: boolean | undefined;
|
|
1469
|
+
readonly allow_auto_merge?: boolean | undefined;
|
|
1470
|
+
readonly allow_update_branch?: boolean | undefined;
|
|
1471
|
+
readonly squash_merge_commit_title?: "PR_TITLE" | "COMMIT_OR_PR_TITLE" | undefined;
|
|
1472
|
+
readonly squash_merge_commit_message?: "PR_BODY" | "COMMIT_MESSAGES" | "BLANK" | undefined;
|
|
1473
|
+
readonly merge_commit_title?: "PR_TITLE" | "MERGE_MESSAGE" | undefined;
|
|
1474
|
+
readonly merge_commit_message?: "PR_TITLE" | "PR_BODY" | "BLANK" | undefined;
|
|
1475
|
+
readonly delete_branch_on_merge?: boolean | undefined;
|
|
1476
|
+
readonly web_commit_signoff_required?: boolean | undefined;
|
|
1477
|
+
readonly security_and_analysis?: {
|
|
1478
|
+
readonly advanced_security?: "enabled" | "disabled" | undefined;
|
|
1479
|
+
readonly code_security?: "enabled" | "disabled" | undefined;
|
|
1480
|
+
readonly secret_scanning?: "enabled" | "disabled" | undefined;
|
|
1481
|
+
readonly secret_scanning_push_protection?: "enabled" | "disabled" | undefined;
|
|
1482
|
+
readonly secret_scanning_ai_detection?: "enabled" | "disabled" | undefined;
|
|
1483
|
+
readonly secret_scanning_non_provider_patterns?: "enabled" | "disabled" | undefined;
|
|
1484
|
+
readonly secret_scanning_delegated_alert_dismissal?: "enabled" | "disabled" | undefined;
|
|
1485
|
+
readonly secret_scanning_delegated_bypass?: "enabled" | "disabled" | undefined;
|
|
1486
|
+
readonly delegated_bypass_reviewers?: readonly ({
|
|
1487
|
+
readonly team: string;
|
|
1488
|
+
readonly mode?: "ALWAYS" | "EXEMPT" | undefined;
|
|
1489
|
+
} | {
|
|
1490
|
+
readonly mode?: "ALWAYS" | "EXEMPT" | undefined;
|
|
1491
|
+
readonly role: string;
|
|
1492
|
+
})[] | undefined;
|
|
1493
|
+
readonly dependabot_security_updates?: "enabled" | "disabled" | undefined;
|
|
1494
|
+
} | undefined;
|
|
1495
|
+
};
|
|
1496
|
+
};
|
|
1497
|
+
readonly security: {
|
|
1498
|
+
readonly [x: string]: {
|
|
1499
|
+
readonly vulnerability_alerts?: boolean | undefined;
|
|
1500
|
+
readonly automated_security_fixes?: boolean | undefined;
|
|
1501
|
+
readonly private_vulnerability_reporting?: boolean | undefined;
|
|
1502
|
+
};
|
|
1503
|
+
};
|
|
1504
|
+
readonly code_scanning: {
|
|
1505
|
+
readonly [x: string]: {
|
|
1506
|
+
readonly state?: "configured" | "not-configured" | undefined;
|
|
1507
|
+
readonly languages?: readonly ("actions" | "c-cpp" | "csharp" | "go" | "java-kotlin" | "javascript-typescript" | "python" | "ruby" | "swift")[] | undefined;
|
|
1508
|
+
readonly query_suite?: "default" | "extended" | undefined;
|
|
1509
|
+
readonly threat_model?: "remote" | "remote_and_local" | undefined;
|
|
1510
|
+
readonly runner_type?: "standard" | "labeled" | undefined;
|
|
1511
|
+
readonly runner_label?: string | undefined;
|
|
1512
|
+
};
|
|
1513
|
+
};
|
|
1514
|
+
readonly log_level: "silent" | "info" | "verbose" | "debug";
|
|
1515
|
+
readonly groups: {
|
|
1516
|
+
readonly [x: string]: {
|
|
1517
|
+
readonly environments?: readonly string[] | undefined;
|
|
1518
|
+
readonly secrets?: {
|
|
1519
|
+
readonly actions?: readonly string[] | undefined;
|
|
1520
|
+
readonly dependabot?: readonly string[] | undefined;
|
|
1521
|
+
readonly codespaces?: readonly string[] | undefined;
|
|
1522
|
+
readonly environments?: {
|
|
1523
|
+
readonly [x: string]: readonly string[];
|
|
1524
|
+
} | undefined;
|
|
1525
|
+
} | undefined;
|
|
1526
|
+
readonly variables?: {
|
|
1527
|
+
readonly actions?: readonly string[] | undefined;
|
|
1528
|
+
readonly environments?: {
|
|
1529
|
+
readonly [x: string]: readonly string[];
|
|
1530
|
+
} | undefined;
|
|
1531
|
+
} | undefined;
|
|
1532
|
+
readonly rulesets?: readonly string[] | undefined;
|
|
1533
|
+
readonly owner?: string | undefined;
|
|
1534
|
+
readonly repos: readonly string[];
|
|
1535
|
+
readonly credentials?: string | undefined;
|
|
1536
|
+
readonly settings?: readonly string[] | undefined;
|
|
1537
|
+
readonly security?: readonly string[] | undefined;
|
|
1538
|
+
readonly code_scanning?: readonly string[] | undefined;
|
|
1539
|
+
readonly cleanup?: {
|
|
1540
|
+
readonly environments: boolean | {
|
|
1541
|
+
readonly preserve: readonly string[];
|
|
1542
|
+
};
|
|
1543
|
+
readonly secrets: {
|
|
1544
|
+
readonly actions: boolean | {
|
|
1545
|
+
readonly preserve: readonly string[];
|
|
1546
|
+
};
|
|
1547
|
+
readonly dependabot: boolean | {
|
|
1548
|
+
readonly preserve: readonly string[];
|
|
1549
|
+
};
|
|
1550
|
+
readonly codespaces: boolean | {
|
|
1551
|
+
readonly preserve: readonly string[];
|
|
1552
|
+
};
|
|
1553
|
+
readonly environments: boolean | {
|
|
1554
|
+
readonly preserve: readonly string[];
|
|
1555
|
+
};
|
|
1556
|
+
};
|
|
1557
|
+
readonly variables: {
|
|
1558
|
+
readonly actions: boolean | {
|
|
1559
|
+
readonly preserve: readonly string[];
|
|
1560
|
+
};
|
|
1561
|
+
readonly environments: boolean | {
|
|
1562
|
+
readonly preserve: readonly string[];
|
|
1563
|
+
};
|
|
1564
|
+
};
|
|
1565
|
+
readonly rulesets: boolean | {
|
|
1566
|
+
readonly preserve: readonly string[];
|
|
1567
|
+
};
|
|
1568
|
+
} | undefined;
|
|
1569
|
+
};
|
|
1570
|
+
};
|
|
1571
|
+
}>>;
|
|
1572
|
+
declare const ReposetsCredentialsFile: import("effect/Context").Tag<import("xdg-effect").ConfigFileService<{
|
|
1573
|
+
readonly profiles: {
|
|
1574
|
+
readonly [x: string]: {
|
|
1575
|
+
readonly github_token: string;
|
|
1576
|
+
readonly op_service_account_token?: string | undefined;
|
|
1577
|
+
readonly resolve?: {
|
|
1578
|
+
readonly file?: {
|
|
1579
|
+
readonly [x: string]: string;
|
|
1580
|
+
} | undefined;
|
|
1581
|
+
readonly value?: {
|
|
1582
|
+
readonly [x: string]: string | {
|
|
1583
|
+
readonly [x: string]: unknown;
|
|
1584
|
+
};
|
|
1585
|
+
} | undefined;
|
|
1586
|
+
readonly op?: {
|
|
1587
|
+
readonly [x: string]: string;
|
|
1588
|
+
} | undefined;
|
|
1589
|
+
} | undefined;
|
|
1590
|
+
};
|
|
1591
|
+
};
|
|
1592
|
+
}>, import("xdg-effect").ConfigFileService<{
|
|
1593
|
+
readonly profiles: {
|
|
1594
|
+
readonly [x: string]: {
|
|
1595
|
+
readonly github_token: string;
|
|
1596
|
+
readonly op_service_account_token?: string | undefined;
|
|
1597
|
+
readonly resolve?: {
|
|
1598
|
+
readonly file?: {
|
|
1599
|
+
readonly [x: string]: string;
|
|
1600
|
+
} | undefined;
|
|
1601
|
+
readonly value?: {
|
|
1602
|
+
readonly [x: string]: string | {
|
|
1603
|
+
readonly [x: string]: unknown;
|
|
1604
|
+
};
|
|
1605
|
+
} | undefined;
|
|
1606
|
+
readonly op?: {
|
|
1607
|
+
readonly [x: string]: string;
|
|
1608
|
+
} | undefined;
|
|
1609
|
+
} | undefined;
|
|
1610
|
+
};
|
|
1611
|
+
};
|
|
1612
|
+
}>>;
|
|
1613
|
+
/**
|
|
1614
|
+
* Validates all internal cross-references in a parsed config. Checks that
|
|
1615
|
+
* every group's settings, secrets, variables, rulesets, and environments
|
|
1616
|
+
* references point to defined top-level sections, and that environment-scoped
|
|
1617
|
+
* secret/variable groups reference defined environments. Collects ALL errors
|
|
1618
|
+
* into a single ConfigError.
|
|
1619
|
+
*/
|
|
1620
|
+
declare function validateConfigRefs(config: Config): Effect.Effect<Config, ConfigError>;
|
|
1621
|
+
/**
|
|
1622
|
+
* Creates a live Layer providing both config and credentials file services.
|
|
1623
|
+
* When configFlag is Some and points to a directory, prepends StaticDir resolver.
|
|
1624
|
+
* When configFlag is Some and points to a file, prepends ExplicitPath resolver.
|
|
1625
|
+
* Always includes UpwardWalk + XdgConfigResolver as fallback resolvers.
|
|
1626
|
+
* Passes validateConfigRefs as the validate callback on the config spec.
|
|
1627
|
+
*/
|
|
1628
|
+
declare function makeConfigFilesLive(configFlag: Option.Option<string>): import("effect/Layer").Layer<import("xdg-effect").ConfigFileService<any> | import("xdg-effect").AppDirs | import("xdg-effect").XdgResolver, never, import("@effect/platform/FileSystem").FileSystem>;
|
|
1629
|
+
/**
|
|
1630
|
+
* Default ConfigFiles layer with no --config flag override.
|
|
1631
|
+
* Used by CLI entrypoint when no flag is provided.
|
|
1632
|
+
*/
|
|
1633
|
+
declare const ConfigFilesLive: import("effect/Layer").Layer<import("xdg-effect").ConfigFileService<any> | import("xdg-effect").AppDirs | import("xdg-effect").XdgResolver, never, import("@effect/platform/FileSystem").FileSystem>;
|
|
1634
|
+
//#endregion
|
|
1635
|
+
//#region src/services/OnePasswordClient.d.ts
|
|
1636
|
+
interface OnePasswordClientService {
|
|
1637
|
+
readonly resolve: (reference: string, serviceAccountToken: string) => Effect.Effect<string, OnePasswordError>;
|
|
1638
|
+
}
|
|
1639
|
+
declare const OnePasswordClient_base: Context.TagClass<OnePasswordClient, "OnePasswordClient", OnePasswordClientService>;
|
|
1640
|
+
declare class OnePasswordClient extends OnePasswordClient_base {}
|
|
1641
|
+
declare const OnePasswordClientLive: Layer.Layer<OnePasswordClient, never, never>;
|
|
1642
|
+
declare function OnePasswordClientTest(stubs: Record<string, string>): Layer.Layer<OnePasswordClient>;
|
|
1643
|
+
//#endregion
|
|
1644
|
+
//#region src/services/CredentialResolver.d.ts
|
|
1645
|
+
interface CredentialResolverService {
|
|
1646
|
+
readonly resolveAll: (profile: CredentialProfile, basePath: string) => Effect.Effect<Map<string, string>, ResolveError>;
|
|
1647
|
+
}
|
|
1648
|
+
declare const CredentialResolver_base: Context.TagClass<CredentialResolver, "CredentialResolver", CredentialResolverService>;
|
|
1649
|
+
declare class CredentialResolver extends CredentialResolver_base {}
|
|
1650
|
+
declare const CredentialResolverLive: Layer.Layer<CredentialResolver, never, OnePasswordClient>;
|
|
1651
|
+
//#endregion
|
|
1652
|
+
//#region src/services/GitHubClient.d.ts
|
|
1653
|
+
type SecretScope = "actions" | "dependabot" | "codespaces";
|
|
1654
|
+
interface SecretInfo {
|
|
1655
|
+
name: string;
|
|
1656
|
+
}
|
|
1657
|
+
interface VariableInfo {
|
|
1658
|
+
name: string;
|
|
1659
|
+
}
|
|
1660
|
+
interface RulesetInfo {
|
|
1661
|
+
name: string;
|
|
1662
|
+
id: number;
|
|
1663
|
+
source_type?: string | undefined;
|
|
1664
|
+
}
|
|
1665
|
+
interface EnvironmentInfo {
|
|
1666
|
+
name: string;
|
|
1667
|
+
}
|
|
1668
|
+
type OwnerType = "User" | "Organization";
|
|
1669
|
+
interface GitHubClientService {
|
|
1670
|
+
readonly getOwnerType: (owner: string) => Effect.Effect<OwnerType, GitHubApiError>;
|
|
1671
|
+
readonly syncSecret: (owner: string, repo: string, name: string, value: string, scope: SecretScope) => Effect.Effect<void, GitHubApiError>;
|
|
1672
|
+
readonly syncVariable: (owner: string, repo: string, name: string, value: string) => Effect.Effect<void, GitHubApiError>;
|
|
1673
|
+
readonly syncSettings: (owner: string, repo: string, settings: Record<string, unknown>) => Effect.Effect<void, GitHubApiError>;
|
|
1674
|
+
readonly syncRuleset: (owner: string, repo: string, name: string, payload: RulesetPayload) => Effect.Effect<void, GitHubApiError>;
|
|
1675
|
+
readonly listSecrets: (owner: string, repo: string, scope: SecretScope) => Effect.Effect<SecretInfo[], GitHubApiError>;
|
|
1676
|
+
readonly listVariables: (owner: string, repo: string) => Effect.Effect<VariableInfo[], GitHubApiError>;
|
|
1677
|
+
readonly listRulesets: (owner: string, repo: string) => Effect.Effect<RulesetInfo[], GitHubApiError>;
|
|
1678
|
+
readonly deleteSecret: (owner: string, repo: string, name: string, scope: SecretScope) => Effect.Effect<void, GitHubApiError>;
|
|
1679
|
+
readonly deleteVariable: (owner: string, repo: string, name: string) => Effect.Effect<void, GitHubApiError>;
|
|
1680
|
+
readonly deleteRuleset: (owner: string, repo: string, rulesetId: number) => Effect.Effect<void, GitHubApiError>;
|
|
1681
|
+
readonly syncEnvironment: (owner: string, repo: string, name: string, config: Record<string, unknown>) => Effect.Effect<void, GitHubApiError>;
|
|
1682
|
+
readonly syncEnvironmentSecret: (owner: string, repo: string, envName: string, name: string, value: string) => Effect.Effect<void, GitHubApiError>;
|
|
1683
|
+
readonly syncEnvironmentVariable: (owner: string, repo: string, envName: string, name: string, value: string) => Effect.Effect<void, GitHubApiError>;
|
|
1684
|
+
readonly listEnvironments: (owner: string, repo: string) => Effect.Effect<EnvironmentInfo[], GitHubApiError>;
|
|
1685
|
+
readonly listEnvironmentSecrets: (owner: string, repo: string, envName: string) => Effect.Effect<SecretInfo[], GitHubApiError>;
|
|
1686
|
+
readonly listEnvironmentVariables: (owner: string, repo: string, envName: string) => Effect.Effect<VariableInfo[], GitHubApiError>;
|
|
1687
|
+
readonly deleteEnvironment: (owner: string, repo: string, name: string) => Effect.Effect<void, GitHubApiError>;
|
|
1688
|
+
readonly deleteEnvironmentSecret: (owner: string, repo: string, envName: string, name: string) => Effect.Effect<void, GitHubApiError>;
|
|
1689
|
+
readonly deleteEnvironmentVariable: (owner: string, repo: string, envName: string, name: string) => Effect.Effect<void, GitHubApiError>;
|
|
1690
|
+
readonly getVulnerabilityAlerts: (owner: string, repo: string) => Effect.Effect<boolean, GitHubApiError>;
|
|
1691
|
+
readonly setVulnerabilityAlerts: (owner: string, repo: string, enabled: boolean) => Effect.Effect<void, GitHubApiError>;
|
|
1692
|
+
readonly getAutomatedSecurityFixes: (owner: string, repo: string) => Effect.Effect<boolean, GitHubApiError>;
|
|
1693
|
+
readonly setAutomatedSecurityFixes: (owner: string, repo: string, enabled: boolean) => Effect.Effect<void, GitHubApiError>;
|
|
1694
|
+
readonly getPrivateVulnerabilityReporting: (owner: string, repo: string) => Effect.Effect<boolean, GitHubApiError>;
|
|
1695
|
+
readonly setPrivateVulnerabilityReporting: (owner: string, repo: string, enabled: boolean) => Effect.Effect<void, GitHubApiError>;
|
|
1696
|
+
readonly updateCodeScanningDefaultSetup: (owner: string, repo: string, config: CodeScanningGroup) => Effect.Effect<void, GitHubApiError>;
|
|
1697
|
+
readonly listRepoLanguages: (owner: string, repo: string) => Effect.Effect<ReadonlyArray<string>, GitHubApiError>;
|
|
1698
|
+
readonly resolveTeamId: (org: string, slug: string) => Effect.Effect<number, GitHubApiError>;
|
|
1699
|
+
readonly resolveRoleId: (org: string, name: string) => Effect.Effect<number, GitHubApiError>;
|
|
1700
|
+
}
|
|
1701
|
+
declare const GitHubClient_base: Context.TagClass<GitHubClient, "GitHubClient", GitHubClientService>;
|
|
1702
|
+
declare class GitHubClient extends GitHubClient_base {}
|
|
1703
|
+
declare function GitHubClientLive(token: string): Layer.Layer<GitHubClient>;
|
|
1704
|
+
interface RecordedCall {
|
|
1705
|
+
method: string;
|
|
1706
|
+
args: Record<string, unknown>;
|
|
1707
|
+
}
|
|
1708
|
+
declare function GitHubClientTest(): {
|
|
1709
|
+
layer: Layer.Layer<GitHubClient>;
|
|
1710
|
+
calls: () => RecordedCall[];
|
|
1711
|
+
};
|
|
1712
|
+
//#endregion
|
|
1713
|
+
//#region src/services/SyncLogger.d.ts
|
|
1714
|
+
interface SyncLoggerService {
|
|
1715
|
+
readonly groupStart: (name: string, repoCount: number) => Effect.Effect<void>;
|
|
1716
|
+
readonly repoStart: (owner: string, repo: string) => Effect.Effect<void>;
|
|
1717
|
+
readonly repoSkip: (owner: string, repo: string, reason: string) => Effect.Effect<void>;
|
|
1718
|
+
readonly syncSummary: (resource: "secret" | "variable" | "ruleset" | "environment" | "security feature" | "code scanning", count: number, detail: string) => Effect.Effect<void>;
|
|
1719
|
+
readonly settingsApplied: () => Effect.Effect<void>;
|
|
1720
|
+
readonly cleanupSummary: (resource: string, count: number, names: string[]) => Effect.Effect<void>;
|
|
1721
|
+
readonly syncOperation: (verb: "sync" | "apply" | "delete" | "skip", resource: string, name: string, detail?: string, source?: string) => Effect.Effect<void>;
|
|
1722
|
+
readonly syncError: (context: string, message: string) => Effect.Effect<void>;
|
|
1723
|
+
readonly finish: () => Effect.Effect<void>;
|
|
1724
|
+
}
|
|
1725
|
+
declare const SyncLogger_base: Context.TagClass<SyncLogger, "SyncLogger", SyncLoggerService>;
|
|
1726
|
+
declare class SyncLogger extends SyncLogger_base {}
|
|
1727
|
+
interface SyncLoggerConfig {
|
|
1728
|
+
readonly dryRun: boolean;
|
|
1729
|
+
readonly logLevel: LogLevel;
|
|
1730
|
+
readonly output?: Ref.Ref<string[]>;
|
|
1731
|
+
}
|
|
1732
|
+
declare function SyncLoggerLive(config: SyncLoggerConfig): Layer.Layer<SyncLogger>;
|
|
1733
|
+
//#endregion
|
|
1734
|
+
//#region src/services/SyncEngine.d.ts
|
|
1735
|
+
interface SyncOptions {
|
|
1736
|
+
readonly dryRun: boolean;
|
|
1737
|
+
readonly noCleanup: boolean;
|
|
1738
|
+
readonly groupFilter?: string | undefined;
|
|
1739
|
+
readonly repoFilter?: string | undefined;
|
|
1740
|
+
readonly configDir: string;
|
|
1741
|
+
}
|
|
1742
|
+
interface SyncEngineService {
|
|
1743
|
+
readonly syncAll: (config: Config, credentials: Credentials, options: SyncOptions) => Effect.Effect<void, SyncError>;
|
|
1744
|
+
}
|
|
1745
|
+
declare const SyncEngine_base: Context.TagClass<SyncEngine, "SyncEngine", SyncEngineService>;
|
|
1746
|
+
declare class SyncEngine extends SyncEngine_base {}
|
|
1747
|
+
declare const SyncEngineLive: Layer.Layer<SyncEngine, never, CredentialResolver | GitHubClient | SyncLogger>;
|
|
1748
|
+
//#endregion
|
|
1749
|
+
export { AppDirs, type BypassActor, BypassActorSchema, CONFIG_FILENAME, CREDENTIALS_FILENAME, type Cleanup, CleanupSchema, type CleanupScope, CleanupScopeSchema, type Config, ConfigFile, ConfigFilesLive, ConfigSchema, type CredentialProfile, CredentialProfileSchema, CredentialResolver, CredentialResolverLive, type Credentials, CredentialsSchema, GitHubApiError, GitHubClient, GitHubClientLive, GitHubClientTest, type Group, GroupSchema, type LogLevel, LogLevelSchema, OnePasswordClient, OnePasswordClientLive, OnePasswordClientTest, OnePasswordError, type RecordedCall, ReposetsConfigFile, ReposetsCredentialsFile, ResolveError, type ResolveSection, ResolveSectionSchema, type ResolvedRef, ResolvedRefSchema, type Ruleset, type RulesetPayload, RulesetSchema, type SecretGroup, SecretGroupSchema, SyncEngine, SyncEngineLive, SyncError, SyncLogger, type SyncLoggerConfig, SyncLoggerLive, type VariableGroup, VariableGroupSchema, XdgConfigError, buildRulesetPayload, encryptSecret, makeConfigFilesLive, validateConfigRefs };
|
|
1750
|
+
//# sourceMappingURL=index.d.ts.map
|