github-settings-as-code 1.0.1 → 1.0.3

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.
Files changed (113) hide show
  1. package/dist/cmd/gh-apply-all.d.mts +3 -0
  2. package/dist/cmd/gh-apply-all.d.mts.map +1 -0
  3. package/dist/cmd/gh-apply-all.mjs +10 -0
  4. package/dist/cmd/gh-apply-all.mjs.map +1 -0
  5. package/dist/cmd/gh-backup-all.d.mts +3 -0
  6. package/dist/cmd/gh-backup-all.d.mts.map +1 -0
  7. package/dist/cmd/gh-backup-all.mjs +9 -0
  8. package/dist/cmd/gh-backup-all.mjs.map +1 -0
  9. package/dist/github/constants.d.mts +10 -0
  10. package/dist/github/constants.d.mts.map +1 -0
  11. package/dist/github/constants.mjs +12 -0
  12. package/dist/github/constants.mjs.map +1 -0
  13. package/dist/github/index.d.mts +5 -0
  14. package/dist/github/index.d.mts.map +1 -0
  15. package/dist/github/index.mjs +5 -0
  16. package/dist/github/index.mjs.map +1 -0
  17. package/dist/github/octokit.d.mts +3 -0
  18. package/dist/github/octokit.d.mts.map +1 -0
  19. package/dist/github/octokit.mjs +5 -0
  20. package/dist/github/octokit.mjs.map +1 -0
  21. package/dist/github/repository/api/get-repository.d.mts +4 -0
  22. package/dist/github/repository/api/get-repository.d.mts.map +1 -0
  23. package/dist/github/repository/api/get-repository.mjs +21 -0
  24. package/dist/github/repository/api/get-repository.mjs.map +1 -0
  25. package/dist/github/repository/api/index.d.mts +3 -0
  26. package/dist/github/repository/api/index.d.mts.map +1 -0
  27. package/dist/github/repository/api/index.mjs +3 -0
  28. package/dist/github/repository/api/index.mjs.map +1 -0
  29. package/dist/github/repository/api/update-repository.d.mts +5 -0
  30. package/dist/github/repository/api/update-repository.d.mts.map +1 -0
  31. package/dist/github/repository/api/update-repository.mjs +36 -0
  32. package/dist/github/repository/api/update-repository.mjs.map +1 -0
  33. package/dist/github/repository/apply.d.mts +4 -0
  34. package/dist/github/repository/apply.d.mts.map +1 -0
  35. package/dist/github/repository/apply.mjs +65 -0
  36. package/dist/github/repository/apply.mjs.map +1 -0
  37. package/dist/github/repository/backup.d.mts +4 -0
  38. package/dist/github/repository/backup.d.mts.map +1 -0
  39. package/dist/github/repository/backup.mjs +20 -0
  40. package/dist/github/repository/backup.mjs.map +1 -0
  41. package/dist/github/repository/constants.d.mts +7272 -0
  42. package/dist/github/repository/constants.d.mts.map +1 -0
  43. package/dist/github/repository/constants.mjs +47 -0
  44. package/dist/github/repository/constants.mjs.map +1 -0
  45. package/dist/github/repository/index.d.mts +5 -0
  46. package/dist/github/repository/index.d.mts.map +1 -0
  47. package/dist/github/repository/index.mjs +5 -0
  48. package/dist/github/repository/index.mjs.map +1 -0
  49. package/dist/github/ruleset/api/create-ruleset.d.mts +5 -0
  50. package/dist/github/ruleset/api/create-ruleset.d.mts.map +1 -0
  51. package/dist/github/ruleset/api/create-ruleset.mjs +19 -0
  52. package/dist/github/ruleset/api/create-ruleset.mjs.map +1 -0
  53. package/dist/github/ruleset/api/get-all-rulesets.d.mts +4 -0
  54. package/dist/github/ruleset/api/get-all-rulesets.d.mts.map +1 -0
  55. package/dist/github/ruleset/api/get-all-rulesets.mjs +23 -0
  56. package/dist/github/ruleset/api/get-all-rulesets.mjs.map +1 -0
  57. package/dist/github/ruleset/api/get-ruleset.d.mts +4 -0
  58. package/dist/github/ruleset/api/get-ruleset.d.mts.map +1 -0
  59. package/dist/github/ruleset/api/get-ruleset.mjs +22 -0
  60. package/dist/github/ruleset/api/get-ruleset.mjs.map +1 -0
  61. package/dist/github/ruleset/api/index.d.mts +5 -0
  62. package/dist/github/ruleset/api/index.d.mts.map +1 -0
  63. package/dist/github/ruleset/api/index.mjs +5 -0
  64. package/dist/github/ruleset/api/index.mjs.map +1 -0
  65. package/dist/github/ruleset/api/update-ruleset.d.mts +6 -0
  66. package/dist/github/ruleset/api/update-ruleset.d.mts.map +1 -0
  67. package/dist/github/ruleset/api/update-ruleset.mjs +20 -0
  68. package/dist/github/ruleset/api/update-ruleset.mjs.map +1 -0
  69. package/dist/github/ruleset/apply.d.mts +4 -0
  70. package/dist/github/ruleset/apply.d.mts.map +1 -0
  71. package/dist/github/ruleset/apply.mjs +56 -0
  72. package/dist/github/ruleset/apply.mjs.map +1 -0
  73. package/dist/github/ruleset/backup.d.mts +4 -0
  74. package/dist/github/ruleset/backup.d.mts.map +1 -0
  75. package/dist/github/ruleset/backup.mjs +23 -0
  76. package/dist/github/ruleset/backup.mjs.map +1 -0
  77. package/dist/github/ruleset/constants.d.mts +1552 -0
  78. package/dist/github/ruleset/constants.d.mts.map +1 -0
  79. package/dist/github/ruleset/constants.mjs +16 -0
  80. package/dist/github/ruleset/constants.mjs.map +1 -0
  81. package/dist/github/ruleset/index.d.mts +6 -0
  82. package/dist/github/ruleset/index.d.mts.map +1 -0
  83. package/dist/github/ruleset/index.mjs +6 -0
  84. package/dist/github/ruleset/index.mjs.map +1 -0
  85. package/dist/github/ruleset/read-rule-set-contents.d.mts +5 -0
  86. package/dist/github/ruleset/read-rule-set-contents.d.mts.map +1 -0
  87. package/dist/github/ruleset/read-rule-set-contents.mjs +27 -0
  88. package/dist/github/ruleset/read-rule-set-contents.mjs.map +1 -0
  89. package/dist/github/variables/api/create-repo-variable.d.mts +5 -0
  90. package/dist/github/variables/api/create-repo-variable.d.mts.map +1 -0
  91. package/dist/github/variables/api/create-repo-variable.mjs +13 -0
  92. package/dist/github/variables/api/create-repo-variable.mjs.map +1 -0
  93. package/dist/github/variables/api/index.d.mts +4 -0
  94. package/dist/github/variables/api/index.d.mts.map +1 -0
  95. package/dist/github/variables/api/index.mjs +4 -0
  96. package/dist/github/variables/api/index.mjs.map +1 -0
  97. package/dist/github/variables/api/list-repo-variables.d.mts +7 -0
  98. package/dist/github/variables/api/list-repo-variables.d.mts.map +1 -0
  99. package/dist/github/variables/api/list-repo-variables.mjs +12 -0
  100. package/dist/github/variables/api/list-repo-variables.mjs.map +1 -0
  101. package/dist/github/variables/api/update-repo-variable.d.mts +5 -0
  102. package/dist/github/variables/api/update-repo-variable.d.mts.map +1 -0
  103. package/dist/github/variables/api/update-repo-variable.mjs +13 -0
  104. package/dist/github/variables/api/update-repo-variable.mjs.map +1 -0
  105. package/dist/github/variables/apply.d.mts +5 -0
  106. package/dist/github/variables/apply.d.mts.map +1 -0
  107. package/dist/github/variables/apply.mjs +26 -0
  108. package/dist/github/variables/apply.mjs.map +1 -0
  109. package/dist/github/variables/index.d.mts +3 -0
  110. package/dist/github/variables/index.d.mts.map +1 -0
  111. package/dist/github/variables/index.mjs +3 -0
  112. package/dist/github/variables/index.mjs.map +1 -0
  113. package/package.json +8 -8
@@ -0,0 +1,1552 @@
1
+ import * as t from 'ts-fortress';
2
+ export declare const rulesetKeysToPick: readonly ["id", "name", "target", "enforcement", "bypass_actors", "conditions", "rules"];
3
+ export declare const RulesetPicked: t.PickedType<{
4
+ readonly id: Readonly<{
5
+ typeName: string;
6
+ defaultValue: number;
7
+ is: (a: unknown) => a is number;
8
+ assertIs: (a: unknown) => asserts a is number;
9
+ cast: (a: unknown) => number;
10
+ fill: (a: unknown) => number;
11
+ validate: (a: unknown) => Result<number, readonly Readonly<{
12
+ path: readonly string[];
13
+ actualValue: unknown;
14
+ expectedType: string;
15
+ typeName: string;
16
+ details?: t.ValidationErrorDetails | undefined;
17
+ }>[]>;
18
+ optional?: true;
19
+ }>;
20
+ readonly name: Readonly<{
21
+ typeName: string;
22
+ defaultValue: string;
23
+ is: (a: unknown) => a is string;
24
+ assertIs: (a: unknown) => asserts a is string;
25
+ cast: (a: unknown) => string;
26
+ fill: (a: unknown) => string;
27
+ validate: (a: unknown) => Result<string, readonly Readonly<{
28
+ path: readonly string[];
29
+ actualValue: unknown;
30
+ expectedType: string;
31
+ typeName: string;
32
+ details?: t.ValidationErrorDetails | undefined;
33
+ }>[]>;
34
+ optional?: true;
35
+ }>;
36
+ readonly target: t.OptionalPropertyType<Readonly<{
37
+ typeName: string;
38
+ defaultValue: "push" | "repository" | "branch" | "tag";
39
+ is: (a: unknown) => a is "push" | "repository" | "branch" | "tag";
40
+ assertIs: (a: unknown) => asserts a is "push" | "repository" | "branch" | "tag";
41
+ cast: (a: unknown) => "push" | "repository" | "branch" | "tag";
42
+ fill: (a: unknown) => "push" | "repository" | "branch" | "tag";
43
+ validate: (a: unknown) => Result<"push" | "repository" | "branch" | "tag", readonly Readonly<{
44
+ path: readonly string[];
45
+ actualValue: unknown;
46
+ expectedType: string;
47
+ typeName: string;
48
+ details?: t.ValidationErrorDetails | undefined;
49
+ }>[]>;
50
+ optional?: true;
51
+ }>>;
52
+ readonly source_type: t.OptionalPropertyType<Readonly<{
53
+ typeName: string;
54
+ defaultValue: "Repository" | "Organization" | "Enterprise";
55
+ is: (a: unknown) => a is "Repository" | "Organization" | "Enterprise";
56
+ assertIs: (a: unknown) => asserts a is "Repository" | "Organization" | "Enterprise";
57
+ cast: (a: unknown) => "Repository" | "Organization" | "Enterprise";
58
+ fill: (a: unknown) => "Repository" | "Organization" | "Enterprise";
59
+ validate: (a: unknown) => Result<"Repository" | "Organization" | "Enterprise", readonly Readonly<{
60
+ path: readonly string[];
61
+ actualValue: unknown;
62
+ expectedType: string;
63
+ typeName: string;
64
+ details?: t.ValidationErrorDetails | undefined;
65
+ }>[]>;
66
+ optional?: true;
67
+ }>>;
68
+ readonly source: Readonly<{
69
+ typeName: string;
70
+ defaultValue: string;
71
+ is: (a: unknown) => a is string;
72
+ assertIs: (a: unknown) => asserts a is string;
73
+ cast: (a: unknown) => string;
74
+ fill: (a: unknown) => string;
75
+ validate: (a: unknown) => Result<string, readonly Readonly<{
76
+ path: readonly string[];
77
+ actualValue: unknown;
78
+ expectedType: string;
79
+ typeName: string;
80
+ details?: t.ValidationErrorDetails | undefined;
81
+ }>[]>;
82
+ optional?: true;
83
+ }>;
84
+ readonly enforcement: Readonly<{
85
+ typeName: string;
86
+ defaultValue: "disabled" | "active" | "evaluate";
87
+ is: (a: unknown) => a is "disabled" | "active" | "evaluate";
88
+ assertIs: (a: unknown) => asserts a is "disabled" | "active" | "evaluate";
89
+ cast: (a: unknown) => "disabled" | "active" | "evaluate";
90
+ fill: (a: unknown) => "disabled" | "active" | "evaluate";
91
+ validate: (a: unknown) => Result<"disabled" | "active" | "evaluate", readonly Readonly<{
92
+ path: readonly string[];
93
+ actualValue: unknown;
94
+ expectedType: string;
95
+ typeName: string;
96
+ details?: t.ValidationErrorDetails | undefined;
97
+ }>[]>;
98
+ optional?: true;
99
+ }>;
100
+ readonly bypass_actors: t.OptionalPropertyType<Readonly<{
101
+ typeName: string;
102
+ defaultValue: readonly Readonly<MergeIntersection<{
103
+ readonly actor_id?: number | null | undefined;
104
+ readonly bypass_mode?: "always" | "pull_request" | "exempt" | undefined;
105
+ } & {
106
+ actor_type: "Integration" | "OrganizationAdmin" | "RepositoryRole" | "Team" | "DeployKey";
107
+ }>>[];
108
+ is: (a: unknown) => a is readonly Readonly<MergeIntersection<{
109
+ readonly actor_id?: number | null | undefined;
110
+ readonly bypass_mode?: "always" | "pull_request" | "exempt" | undefined;
111
+ } & {
112
+ actor_type: "Integration" | "OrganizationAdmin" | "RepositoryRole" | "Team" | "DeployKey";
113
+ }>>[];
114
+ assertIs: (a: unknown) => asserts a is readonly Readonly<MergeIntersection<{
115
+ readonly actor_id?: number | null | undefined;
116
+ readonly bypass_mode?: "always" | "pull_request" | "exempt" | undefined;
117
+ } & {
118
+ actor_type: "Integration" | "OrganizationAdmin" | "RepositoryRole" | "Team" | "DeployKey";
119
+ }>>[];
120
+ cast: (a: unknown) => readonly Readonly<MergeIntersection<{
121
+ readonly actor_id?: number | null | undefined;
122
+ readonly bypass_mode?: "always" | "pull_request" | "exempt" | undefined;
123
+ } & {
124
+ actor_type: "Integration" | "OrganizationAdmin" | "RepositoryRole" | "Team" | "DeployKey";
125
+ }>>[];
126
+ fill: (a: unknown) => readonly Readonly<MergeIntersection<{
127
+ readonly actor_id?: number | null | undefined;
128
+ readonly bypass_mode?: "always" | "pull_request" | "exempt" | undefined;
129
+ } & {
130
+ actor_type: "Integration" | "OrganizationAdmin" | "RepositoryRole" | "Team" | "DeployKey";
131
+ }>>[];
132
+ validate: (a: unknown) => Result<readonly Readonly<MergeIntersection<{
133
+ readonly actor_id?: number | null | undefined;
134
+ readonly bypass_mode?: "always" | "pull_request" | "exempt" | undefined;
135
+ } & {
136
+ actor_type: "Integration" | "OrganizationAdmin" | "RepositoryRole" | "Team" | "DeployKey";
137
+ }>>[], readonly Readonly<{
138
+ path: readonly string[];
139
+ actualValue: unknown;
140
+ expectedType: string;
141
+ typeName: string;
142
+ details?: t.ValidationErrorDetails | undefined;
143
+ }>[]>;
144
+ optional?: true;
145
+ }>>;
146
+ readonly current_user_can_bypass: t.OptionalPropertyType<Readonly<{
147
+ typeName: string;
148
+ defaultValue: "always" | "exempt" | "pull_requests_only" | "never";
149
+ is: (a: unknown) => a is "always" | "exempt" | "pull_requests_only" | "never";
150
+ assertIs: (a: unknown) => asserts a is "always" | "exempt" | "pull_requests_only" | "never";
151
+ cast: (a: unknown) => "always" | "exempt" | "pull_requests_only" | "never";
152
+ fill: (a: unknown) => "always" | "exempt" | "pull_requests_only" | "never";
153
+ validate: (a: unknown) => Result<"always" | "exempt" | "pull_requests_only" | "never", readonly Readonly<{
154
+ path: readonly string[];
155
+ actualValue: unknown;
156
+ expectedType: string;
157
+ typeName: string;
158
+ details?: t.ValidationErrorDetails | undefined;
159
+ }>[]>;
160
+ optional?: true;
161
+ }>>;
162
+ readonly node_id: t.OptionalPropertyType<Readonly<{
163
+ typeName: string;
164
+ defaultValue: string;
165
+ is: (a: unknown) => a is string;
166
+ assertIs: (a: unknown) => asserts a is string;
167
+ cast: (a: unknown) => string;
168
+ fill: (a: unknown) => string;
169
+ validate: (a: unknown) => Result<string, readonly Readonly<{
170
+ path: readonly string[];
171
+ actualValue: unknown;
172
+ expectedType: string;
173
+ typeName: string;
174
+ details?: t.ValidationErrorDetails | undefined;
175
+ }>[]>;
176
+ optional?: true;
177
+ }>>;
178
+ readonly _links: t.OptionalPropertyType<t.RecordType<{
179
+ readonly self: t.OptionalPropertyType<t.RecordType<{
180
+ readonly href: t.OptionalPropertyType<Readonly<{
181
+ typeName: string;
182
+ defaultValue: string;
183
+ is: (a: unknown) => a is string;
184
+ assertIs: (a: unknown) => asserts a is string;
185
+ cast: (a: unknown) => string;
186
+ fill: (a: unknown) => string;
187
+ validate: (a: unknown) => Result<string, readonly Readonly<{
188
+ path: readonly string[];
189
+ actualValue: unknown;
190
+ expectedType: string;
191
+ typeName: string;
192
+ details?: t.ValidationErrorDetails | undefined;
193
+ }>[]>;
194
+ optional?: true;
195
+ }>>;
196
+ }, "strip">>;
197
+ readonly html: t.OptionalPropertyType<Readonly<{
198
+ typeName: string;
199
+ defaultValue: Readonly<MergeIntersection<{
200
+ readonly href?: string | undefined;
201
+ }>> | null;
202
+ is: (a: unknown) => a is Readonly<MergeIntersection<{
203
+ readonly href?: string | undefined;
204
+ }>> | null;
205
+ assertIs: (a: unknown) => asserts a is Readonly<MergeIntersection<{
206
+ readonly href?: string | undefined;
207
+ }>> | null;
208
+ cast: (a: unknown) => Readonly<MergeIntersection<{
209
+ readonly href?: string | undefined;
210
+ }>> | null;
211
+ fill: (a: unknown) => Readonly<MergeIntersection<{
212
+ readonly href?: string | undefined;
213
+ }>> | null;
214
+ validate: (a: unknown) => Result<Readonly<MergeIntersection<{
215
+ readonly href?: string | undefined;
216
+ }>> | null, readonly Readonly<{
217
+ path: readonly string[];
218
+ actualValue: unknown;
219
+ expectedType: string;
220
+ typeName: string;
221
+ details?: t.ValidationErrorDetails | undefined;
222
+ }>[]>;
223
+ optional?: true;
224
+ }>>;
225
+ }, "strip">>;
226
+ readonly conditions: t.OptionalPropertyType<Readonly<{
227
+ typeName: string;
228
+ defaultValue: Readonly<MergeIntersection<{
229
+ readonly ref_name?: Readonly<MergeIntersection<{
230
+ readonly include?: readonly string[] | undefined;
231
+ readonly exclude?: readonly string[] | undefined;
232
+ }>> | undefined;
233
+ }>> | MergeIntersection<Readonly<MergeIntersection<{
234
+ readonly ref_name?: Readonly<MergeIntersection<{
235
+ readonly include?: readonly string[] | undefined;
236
+ readonly exclude?: readonly string[] | undefined;
237
+ }>> | undefined;
238
+ }>> & Readonly<{
239
+ repository_name: Readonly<MergeIntersection<{
240
+ readonly include?: readonly string[] | undefined;
241
+ readonly exclude?: readonly string[] | undefined;
242
+ readonly protected?: boolean | undefined;
243
+ }>>;
244
+ }>> | MergeIntersection<Readonly<MergeIntersection<{
245
+ readonly ref_name?: Readonly<MergeIntersection<{
246
+ readonly include?: readonly string[] | undefined;
247
+ readonly exclude?: readonly string[] | undefined;
248
+ }>> | undefined;
249
+ }>> & Readonly<{
250
+ repository_id: Readonly<MergeIntersection<{
251
+ readonly repository_ids?: readonly number[] | undefined;
252
+ }>>;
253
+ }>> | MergeIntersection<Readonly<MergeIntersection<{
254
+ readonly ref_name?: Readonly<MergeIntersection<{
255
+ readonly include?: readonly string[] | undefined;
256
+ readonly exclude?: readonly string[] | undefined;
257
+ }>> | undefined;
258
+ }>> & Readonly<{
259
+ repository_property: Readonly<MergeIntersection<{
260
+ readonly include?: readonly Readonly<MergeIntersection<{
261
+ readonly source?: "custom" | "system" | undefined;
262
+ } & {
263
+ name: string;
264
+ property_values: readonly string[];
265
+ }>>[] | undefined;
266
+ readonly exclude?: readonly Readonly<MergeIntersection<{
267
+ readonly source?: "custom" | "system" | undefined;
268
+ } & {
269
+ name: string;
270
+ property_values: readonly string[];
271
+ }>>[] | undefined;
272
+ }>>;
273
+ }>> | null;
274
+ is: (a: unknown) => a is Readonly<MergeIntersection<{
275
+ readonly ref_name?: Readonly<MergeIntersection<{
276
+ readonly include?: readonly string[] | undefined;
277
+ readonly exclude?: readonly string[] | undefined;
278
+ }>> | undefined;
279
+ }>> | MergeIntersection<Readonly<MergeIntersection<{
280
+ readonly ref_name?: Readonly<MergeIntersection<{
281
+ readonly include?: readonly string[] | undefined;
282
+ readonly exclude?: readonly string[] | undefined;
283
+ }>> | undefined;
284
+ }>> & Readonly<{
285
+ repository_name: Readonly<MergeIntersection<{
286
+ readonly include?: readonly string[] | undefined;
287
+ readonly exclude?: readonly string[] | undefined;
288
+ readonly protected?: boolean | undefined;
289
+ }>>;
290
+ }>> | MergeIntersection<Readonly<MergeIntersection<{
291
+ readonly ref_name?: Readonly<MergeIntersection<{
292
+ readonly include?: readonly string[] | undefined;
293
+ readonly exclude?: readonly string[] | undefined;
294
+ }>> | undefined;
295
+ }>> & Readonly<{
296
+ repository_id: Readonly<MergeIntersection<{
297
+ readonly repository_ids?: readonly number[] | undefined;
298
+ }>>;
299
+ }>> | MergeIntersection<Readonly<MergeIntersection<{
300
+ readonly ref_name?: Readonly<MergeIntersection<{
301
+ readonly include?: readonly string[] | undefined;
302
+ readonly exclude?: readonly string[] | undefined;
303
+ }>> | undefined;
304
+ }>> & Readonly<{
305
+ repository_property: Readonly<MergeIntersection<{
306
+ readonly include?: readonly Readonly<MergeIntersection<{
307
+ readonly source?: "custom" | "system" | undefined;
308
+ } & {
309
+ name: string;
310
+ property_values: readonly string[];
311
+ }>>[] | undefined;
312
+ readonly exclude?: readonly Readonly<MergeIntersection<{
313
+ readonly source?: "custom" | "system" | undefined;
314
+ } & {
315
+ name: string;
316
+ property_values: readonly string[];
317
+ }>>[] | undefined;
318
+ }>>;
319
+ }>> | null;
320
+ assertIs: (a: unknown) => asserts a is Readonly<MergeIntersection<{
321
+ readonly ref_name?: Readonly<MergeIntersection<{
322
+ readonly include?: readonly string[] | undefined;
323
+ readonly exclude?: readonly string[] | undefined;
324
+ }>> | undefined;
325
+ }>> | MergeIntersection<Readonly<MergeIntersection<{
326
+ readonly ref_name?: Readonly<MergeIntersection<{
327
+ readonly include?: readonly string[] | undefined;
328
+ readonly exclude?: readonly string[] | undefined;
329
+ }>> | undefined;
330
+ }>> & Readonly<{
331
+ repository_name: Readonly<MergeIntersection<{
332
+ readonly include?: readonly string[] | undefined;
333
+ readonly exclude?: readonly string[] | undefined;
334
+ readonly protected?: boolean | undefined;
335
+ }>>;
336
+ }>> | MergeIntersection<Readonly<MergeIntersection<{
337
+ readonly ref_name?: Readonly<MergeIntersection<{
338
+ readonly include?: readonly string[] | undefined;
339
+ readonly exclude?: readonly string[] | undefined;
340
+ }>> | undefined;
341
+ }>> & Readonly<{
342
+ repository_id: Readonly<MergeIntersection<{
343
+ readonly repository_ids?: readonly number[] | undefined;
344
+ }>>;
345
+ }>> | MergeIntersection<Readonly<MergeIntersection<{
346
+ readonly ref_name?: Readonly<MergeIntersection<{
347
+ readonly include?: readonly string[] | undefined;
348
+ readonly exclude?: readonly string[] | undefined;
349
+ }>> | undefined;
350
+ }>> & Readonly<{
351
+ repository_property: Readonly<MergeIntersection<{
352
+ readonly include?: readonly Readonly<MergeIntersection<{
353
+ readonly source?: "custom" | "system" | undefined;
354
+ } & {
355
+ name: string;
356
+ property_values: readonly string[];
357
+ }>>[] | undefined;
358
+ readonly exclude?: readonly Readonly<MergeIntersection<{
359
+ readonly source?: "custom" | "system" | undefined;
360
+ } & {
361
+ name: string;
362
+ property_values: readonly string[];
363
+ }>>[] | undefined;
364
+ }>>;
365
+ }>> | null;
366
+ cast: (a: unknown) => Readonly<MergeIntersection<{
367
+ readonly ref_name?: Readonly<MergeIntersection<{
368
+ readonly include?: readonly string[] | undefined;
369
+ readonly exclude?: readonly string[] | undefined;
370
+ }>> | undefined;
371
+ }>> | MergeIntersection<Readonly<MergeIntersection<{
372
+ readonly ref_name?: Readonly<MergeIntersection<{
373
+ readonly include?: readonly string[] | undefined;
374
+ readonly exclude?: readonly string[] | undefined;
375
+ }>> | undefined;
376
+ }>> & Readonly<{
377
+ repository_name: Readonly<MergeIntersection<{
378
+ readonly include?: readonly string[] | undefined;
379
+ readonly exclude?: readonly string[] | undefined;
380
+ readonly protected?: boolean | undefined;
381
+ }>>;
382
+ }>> | MergeIntersection<Readonly<MergeIntersection<{
383
+ readonly ref_name?: Readonly<MergeIntersection<{
384
+ readonly include?: readonly string[] | undefined;
385
+ readonly exclude?: readonly string[] | undefined;
386
+ }>> | undefined;
387
+ }>> & Readonly<{
388
+ repository_id: Readonly<MergeIntersection<{
389
+ readonly repository_ids?: readonly number[] | undefined;
390
+ }>>;
391
+ }>> | MergeIntersection<Readonly<MergeIntersection<{
392
+ readonly ref_name?: Readonly<MergeIntersection<{
393
+ readonly include?: readonly string[] | undefined;
394
+ readonly exclude?: readonly string[] | undefined;
395
+ }>> | undefined;
396
+ }>> & Readonly<{
397
+ repository_property: Readonly<MergeIntersection<{
398
+ readonly include?: readonly Readonly<MergeIntersection<{
399
+ readonly source?: "custom" | "system" | undefined;
400
+ } & {
401
+ name: string;
402
+ property_values: readonly string[];
403
+ }>>[] | undefined;
404
+ readonly exclude?: readonly Readonly<MergeIntersection<{
405
+ readonly source?: "custom" | "system" | undefined;
406
+ } & {
407
+ name: string;
408
+ property_values: readonly string[];
409
+ }>>[] | undefined;
410
+ }>>;
411
+ }>> | null;
412
+ fill: (a: unknown) => Readonly<MergeIntersection<{
413
+ readonly ref_name?: Readonly<MergeIntersection<{
414
+ readonly include?: readonly string[] | undefined;
415
+ readonly exclude?: readonly string[] | undefined;
416
+ }>> | undefined;
417
+ }>> | MergeIntersection<Readonly<MergeIntersection<{
418
+ readonly ref_name?: Readonly<MergeIntersection<{
419
+ readonly include?: readonly string[] | undefined;
420
+ readonly exclude?: readonly string[] | undefined;
421
+ }>> | undefined;
422
+ }>> & Readonly<{
423
+ repository_name: Readonly<MergeIntersection<{
424
+ readonly include?: readonly string[] | undefined;
425
+ readonly exclude?: readonly string[] | undefined;
426
+ readonly protected?: boolean | undefined;
427
+ }>>;
428
+ }>> | MergeIntersection<Readonly<MergeIntersection<{
429
+ readonly ref_name?: Readonly<MergeIntersection<{
430
+ readonly include?: readonly string[] | undefined;
431
+ readonly exclude?: readonly string[] | undefined;
432
+ }>> | undefined;
433
+ }>> & Readonly<{
434
+ repository_id: Readonly<MergeIntersection<{
435
+ readonly repository_ids?: readonly number[] | undefined;
436
+ }>>;
437
+ }>> | MergeIntersection<Readonly<MergeIntersection<{
438
+ readonly ref_name?: Readonly<MergeIntersection<{
439
+ readonly include?: readonly string[] | undefined;
440
+ readonly exclude?: readonly string[] | undefined;
441
+ }>> | undefined;
442
+ }>> & Readonly<{
443
+ repository_property: Readonly<MergeIntersection<{
444
+ readonly include?: readonly Readonly<MergeIntersection<{
445
+ readonly source?: "custom" | "system" | undefined;
446
+ } & {
447
+ name: string;
448
+ property_values: readonly string[];
449
+ }>>[] | undefined;
450
+ readonly exclude?: readonly Readonly<MergeIntersection<{
451
+ readonly source?: "custom" | "system" | undefined;
452
+ } & {
453
+ name: string;
454
+ property_values: readonly string[];
455
+ }>>[] | undefined;
456
+ }>>;
457
+ }>> | null;
458
+ validate: (a: unknown) => Result<Readonly<MergeIntersection<{
459
+ readonly ref_name?: Readonly<MergeIntersection<{
460
+ readonly include?: readonly string[] | undefined;
461
+ readonly exclude?: readonly string[] | undefined;
462
+ }>> | undefined;
463
+ }>> | MergeIntersection<Readonly<MergeIntersection<{
464
+ readonly ref_name?: Readonly<MergeIntersection<{
465
+ readonly include?: readonly string[] | undefined;
466
+ readonly exclude?: readonly string[] | undefined;
467
+ }>> | undefined;
468
+ }>> & Readonly<{
469
+ repository_name: Readonly<MergeIntersection<{
470
+ readonly include?: readonly string[] | undefined;
471
+ readonly exclude?: readonly string[] | undefined;
472
+ readonly protected?: boolean | undefined;
473
+ }>>;
474
+ }>> | MergeIntersection<Readonly<MergeIntersection<{
475
+ readonly ref_name?: Readonly<MergeIntersection<{
476
+ readonly include?: readonly string[] | undefined;
477
+ readonly exclude?: readonly string[] | undefined;
478
+ }>> | undefined;
479
+ }>> & Readonly<{
480
+ repository_id: Readonly<MergeIntersection<{
481
+ readonly repository_ids?: readonly number[] | undefined;
482
+ }>>;
483
+ }>> | MergeIntersection<Readonly<MergeIntersection<{
484
+ readonly ref_name?: Readonly<MergeIntersection<{
485
+ readonly include?: readonly string[] | undefined;
486
+ readonly exclude?: readonly string[] | undefined;
487
+ }>> | undefined;
488
+ }>> & Readonly<{
489
+ repository_property: Readonly<MergeIntersection<{
490
+ readonly include?: readonly Readonly<MergeIntersection<{
491
+ readonly source?: "custom" | "system" | undefined;
492
+ } & {
493
+ name: string;
494
+ property_values: readonly string[];
495
+ }>>[] | undefined;
496
+ readonly exclude?: readonly Readonly<MergeIntersection<{
497
+ readonly source?: "custom" | "system" | undefined;
498
+ } & {
499
+ name: string;
500
+ property_values: readonly string[];
501
+ }>>[] | undefined;
502
+ }>>;
503
+ }>> | null, readonly Readonly<{
504
+ path: readonly string[];
505
+ actualValue: unknown;
506
+ expectedType: string;
507
+ typeName: string;
508
+ details?: t.ValidationErrorDetails | undefined;
509
+ }>[]>;
510
+ optional?: true;
511
+ }>>;
512
+ readonly rules: t.OptionalPropertyType<Readonly<{
513
+ typeName: string;
514
+ defaultValue: readonly (Readonly<{
515
+ type: "creation";
516
+ }> | Readonly<MergeIntersection<{
517
+ readonly parameters?: Readonly<{
518
+ update_allows_fetch_and_merge: boolean;
519
+ }> | undefined;
520
+ } & {
521
+ type: "update";
522
+ }>> | Readonly<{
523
+ type: "deletion";
524
+ }> | Readonly<{
525
+ type: "required_linear_history";
526
+ }> | Readonly<MergeIntersection<{
527
+ readonly parameters?: Readonly<{
528
+ grouping_strategy: "ALLGREEN" | "HEADGREEN";
529
+ merge_method: "MERGE" | "SQUASH" | "REBASE";
530
+ check_response_timeout_minutes: number;
531
+ max_entries_to_build: number;
532
+ max_entries_to_merge: number;
533
+ min_entries_to_merge: number;
534
+ min_entries_to_merge_wait_minutes: number;
535
+ }> | undefined;
536
+ } & {
537
+ type: "merge_queue";
538
+ }>> | Readonly<MergeIntersection<{
539
+ readonly parameters?: Readonly<{
540
+ required_deployment_environments: readonly string[];
541
+ }> | undefined;
542
+ } & {
543
+ type: "required_deployments";
544
+ }>> | Readonly<{
545
+ type: "required_signatures";
546
+ }> | Readonly<MergeIntersection<{
547
+ readonly parameters?: Readonly<MergeIntersection<{
548
+ readonly allowed_merge_methods?: readonly ("merge" | "squash" | "rebase")[] | undefined;
549
+ readonly automatic_copilot_code_review_enabled?: boolean | undefined;
550
+ } & {
551
+ dismiss_stale_reviews_on_push: boolean;
552
+ require_code_owner_review: boolean;
553
+ require_last_push_approval: boolean;
554
+ required_approving_review_count: number;
555
+ required_review_thread_resolution: boolean;
556
+ }>> | undefined;
557
+ } & {
558
+ type: "pull_request";
559
+ }>> | Readonly<MergeIntersection<{
560
+ readonly parameters?: Readonly<MergeIntersection<{
561
+ readonly do_not_enforce_on_create?: boolean | undefined;
562
+ } & {
563
+ required_status_checks: readonly Readonly<MergeIntersection<{
564
+ readonly integration_id?: number | undefined;
565
+ } & {
566
+ context: string;
567
+ }>>[];
568
+ strict_required_status_checks_policy: boolean;
569
+ }>> | undefined;
570
+ } & {
571
+ type: "required_status_checks";
572
+ }>> | Readonly<{
573
+ type: "non_fast_forward";
574
+ }> | Readonly<MergeIntersection<{
575
+ readonly parameters?: Readonly<MergeIntersection<{
576
+ readonly name?: string | undefined;
577
+ readonly negate?: boolean | undefined;
578
+ } & {
579
+ operator: "starts_with" | "ends_with" | "contains" | "regex";
580
+ pattern: string;
581
+ }>> | undefined;
582
+ } & {
583
+ type: "commit_message_pattern";
584
+ }>> | Readonly<MergeIntersection<{
585
+ readonly parameters?: Readonly<MergeIntersection<{
586
+ readonly name?: string | undefined;
587
+ readonly negate?: boolean | undefined;
588
+ } & {
589
+ operator: "starts_with" | "ends_with" | "contains" | "regex";
590
+ pattern: string;
591
+ }>> | undefined;
592
+ } & {
593
+ type: "commit_author_email_pattern";
594
+ }>> | Readonly<MergeIntersection<{
595
+ readonly parameters?: Readonly<MergeIntersection<{
596
+ readonly name?: string | undefined;
597
+ readonly negate?: boolean | undefined;
598
+ } & {
599
+ operator: "starts_with" | "ends_with" | "contains" | "regex";
600
+ pattern: string;
601
+ }>> | undefined;
602
+ } & {
603
+ type: "committer_email_pattern";
604
+ }>> | Readonly<MergeIntersection<{
605
+ readonly parameters?: Readonly<MergeIntersection<{
606
+ readonly name?: string | undefined;
607
+ readonly negate?: boolean | undefined;
608
+ } & {
609
+ operator: "starts_with" | "ends_with" | "contains" | "regex";
610
+ pattern: string;
611
+ }>> | undefined;
612
+ } & {
613
+ type: "branch_name_pattern";
614
+ }>> | Readonly<MergeIntersection<{
615
+ readonly parameters?: Readonly<MergeIntersection<{
616
+ readonly name?: string | undefined;
617
+ readonly negate?: boolean | undefined;
618
+ } & {
619
+ operator: "starts_with" | "ends_with" | "contains" | "regex";
620
+ pattern: string;
621
+ }>> | undefined;
622
+ } & {
623
+ type: "tag_name_pattern";
624
+ }>> | Readonly<MergeIntersection<{
625
+ readonly parameters?: Readonly<{
626
+ restricted_file_paths: readonly string[];
627
+ }> | undefined;
628
+ } & {
629
+ type: "file_path_restriction";
630
+ }>> | Readonly<MergeIntersection<{
631
+ readonly parameters?: Readonly<{
632
+ max_file_path_length: number;
633
+ }> | undefined;
634
+ } & {
635
+ type: "max_file_path_length";
636
+ }>> | Readonly<MergeIntersection<{
637
+ readonly parameters?: Readonly<{
638
+ restricted_file_extensions: readonly string[];
639
+ }> | undefined;
640
+ } & {
641
+ type: "file_extension_restriction";
642
+ }>> | Readonly<MergeIntersection<{
643
+ readonly parameters?: Readonly<{
644
+ max_file_size: number;
645
+ }> | undefined;
646
+ } & {
647
+ type: "max_file_size";
648
+ }>> | Readonly<MergeIntersection<{
649
+ readonly parameters?: Readonly<MergeIntersection<{
650
+ readonly do_not_enforce_on_create?: boolean | undefined;
651
+ } & {
652
+ workflows: readonly Readonly<MergeIntersection<{
653
+ readonly ref?: string | undefined;
654
+ readonly sha?: string | undefined;
655
+ } & {
656
+ path: string;
657
+ repository_id: number;
658
+ }>>[];
659
+ }>> | undefined;
660
+ } & {
661
+ type: "workflows";
662
+ }>> | Readonly<MergeIntersection<{
663
+ readonly parameters?: Readonly<{
664
+ code_scanning_tools: readonly Readonly<{
665
+ alerts_threshold: "none" | "errors" | "errors_and_warnings" | "all";
666
+ security_alerts_threshold: "none" | "all" | "critical" | "high_or_higher" | "medium_or_higher";
667
+ tool: string;
668
+ }>[];
669
+ }> | undefined;
670
+ } & {
671
+ type: "code_scanning";
672
+ }>> | Readonly<MergeIntersection<{
673
+ readonly parameters?: Readonly<MergeIntersection<{
674
+ readonly review_on_push?: boolean | undefined;
675
+ readonly review_draft_pull_requests?: boolean | undefined;
676
+ }>> | undefined;
677
+ } & {
678
+ type: "copilot_code_review";
679
+ }>>)[];
680
+ is: (a: unknown) => a is readonly (Readonly<{
681
+ type: "creation";
682
+ }> | Readonly<MergeIntersection<{
683
+ readonly parameters?: Readonly<{
684
+ update_allows_fetch_and_merge: boolean;
685
+ }> | undefined;
686
+ } & {
687
+ type: "update";
688
+ }>> | Readonly<{
689
+ type: "deletion";
690
+ }> | Readonly<{
691
+ type: "required_linear_history";
692
+ }> | Readonly<MergeIntersection<{
693
+ readonly parameters?: Readonly<{
694
+ grouping_strategy: "ALLGREEN" | "HEADGREEN";
695
+ merge_method: "MERGE" | "SQUASH" | "REBASE";
696
+ check_response_timeout_minutes: number;
697
+ max_entries_to_build: number;
698
+ max_entries_to_merge: number;
699
+ min_entries_to_merge: number;
700
+ min_entries_to_merge_wait_minutes: number;
701
+ }> | undefined;
702
+ } & {
703
+ type: "merge_queue";
704
+ }>> | Readonly<MergeIntersection<{
705
+ readonly parameters?: Readonly<{
706
+ required_deployment_environments: readonly string[];
707
+ }> | undefined;
708
+ } & {
709
+ type: "required_deployments";
710
+ }>> | Readonly<{
711
+ type: "required_signatures";
712
+ }> | Readonly<MergeIntersection<{
713
+ readonly parameters?: Readonly<MergeIntersection<{
714
+ readonly allowed_merge_methods?: readonly ("merge" | "squash" | "rebase")[] | undefined;
715
+ readonly automatic_copilot_code_review_enabled?: boolean | undefined;
716
+ } & {
717
+ dismiss_stale_reviews_on_push: boolean;
718
+ require_code_owner_review: boolean;
719
+ require_last_push_approval: boolean;
720
+ required_approving_review_count: number;
721
+ required_review_thread_resolution: boolean;
722
+ }>> | undefined;
723
+ } & {
724
+ type: "pull_request";
725
+ }>> | Readonly<MergeIntersection<{
726
+ readonly parameters?: Readonly<MergeIntersection<{
727
+ readonly do_not_enforce_on_create?: boolean | undefined;
728
+ } & {
729
+ required_status_checks: readonly Readonly<MergeIntersection<{
730
+ readonly integration_id?: number | undefined;
731
+ } & {
732
+ context: string;
733
+ }>>[];
734
+ strict_required_status_checks_policy: boolean;
735
+ }>> | undefined;
736
+ } & {
737
+ type: "required_status_checks";
738
+ }>> | Readonly<{
739
+ type: "non_fast_forward";
740
+ }> | Readonly<MergeIntersection<{
741
+ readonly parameters?: Readonly<MergeIntersection<{
742
+ readonly name?: string | undefined;
743
+ readonly negate?: boolean | undefined;
744
+ } & {
745
+ operator: "starts_with" | "ends_with" | "contains" | "regex";
746
+ pattern: string;
747
+ }>> | undefined;
748
+ } & {
749
+ type: "commit_message_pattern";
750
+ }>> | Readonly<MergeIntersection<{
751
+ readonly parameters?: Readonly<MergeIntersection<{
752
+ readonly name?: string | undefined;
753
+ readonly negate?: boolean | undefined;
754
+ } & {
755
+ operator: "starts_with" | "ends_with" | "contains" | "regex";
756
+ pattern: string;
757
+ }>> | undefined;
758
+ } & {
759
+ type: "commit_author_email_pattern";
760
+ }>> | Readonly<MergeIntersection<{
761
+ readonly parameters?: Readonly<MergeIntersection<{
762
+ readonly name?: string | undefined;
763
+ readonly negate?: boolean | undefined;
764
+ } & {
765
+ operator: "starts_with" | "ends_with" | "contains" | "regex";
766
+ pattern: string;
767
+ }>> | undefined;
768
+ } & {
769
+ type: "committer_email_pattern";
770
+ }>> | Readonly<MergeIntersection<{
771
+ readonly parameters?: Readonly<MergeIntersection<{
772
+ readonly name?: string | undefined;
773
+ readonly negate?: boolean | undefined;
774
+ } & {
775
+ operator: "starts_with" | "ends_with" | "contains" | "regex";
776
+ pattern: string;
777
+ }>> | undefined;
778
+ } & {
779
+ type: "branch_name_pattern";
780
+ }>> | Readonly<MergeIntersection<{
781
+ readonly parameters?: Readonly<MergeIntersection<{
782
+ readonly name?: string | undefined;
783
+ readonly negate?: boolean | undefined;
784
+ } & {
785
+ operator: "starts_with" | "ends_with" | "contains" | "regex";
786
+ pattern: string;
787
+ }>> | undefined;
788
+ } & {
789
+ type: "tag_name_pattern";
790
+ }>> | Readonly<MergeIntersection<{
791
+ readonly parameters?: Readonly<{
792
+ restricted_file_paths: readonly string[];
793
+ }> | undefined;
794
+ } & {
795
+ type: "file_path_restriction";
796
+ }>> | Readonly<MergeIntersection<{
797
+ readonly parameters?: Readonly<{
798
+ max_file_path_length: number;
799
+ }> | undefined;
800
+ } & {
801
+ type: "max_file_path_length";
802
+ }>> | Readonly<MergeIntersection<{
803
+ readonly parameters?: Readonly<{
804
+ restricted_file_extensions: readonly string[];
805
+ }> | undefined;
806
+ } & {
807
+ type: "file_extension_restriction";
808
+ }>> | Readonly<MergeIntersection<{
809
+ readonly parameters?: Readonly<{
810
+ max_file_size: number;
811
+ }> | undefined;
812
+ } & {
813
+ type: "max_file_size";
814
+ }>> | Readonly<MergeIntersection<{
815
+ readonly parameters?: Readonly<MergeIntersection<{
816
+ readonly do_not_enforce_on_create?: boolean | undefined;
817
+ } & {
818
+ workflows: readonly Readonly<MergeIntersection<{
819
+ readonly ref?: string | undefined;
820
+ readonly sha?: string | undefined;
821
+ } & {
822
+ path: string;
823
+ repository_id: number;
824
+ }>>[];
825
+ }>> | undefined;
826
+ } & {
827
+ type: "workflows";
828
+ }>> | Readonly<MergeIntersection<{
829
+ readonly parameters?: Readonly<{
830
+ code_scanning_tools: readonly Readonly<{
831
+ alerts_threshold: "none" | "errors" | "errors_and_warnings" | "all";
832
+ security_alerts_threshold: "none" | "all" | "critical" | "high_or_higher" | "medium_or_higher";
833
+ tool: string;
834
+ }>[];
835
+ }> | undefined;
836
+ } & {
837
+ type: "code_scanning";
838
+ }>> | Readonly<MergeIntersection<{
839
+ readonly parameters?: Readonly<MergeIntersection<{
840
+ readonly review_on_push?: boolean | undefined;
841
+ readonly review_draft_pull_requests?: boolean | undefined;
842
+ }>> | undefined;
843
+ } & {
844
+ type: "copilot_code_review";
845
+ }>>)[];
846
+ assertIs: (a: unknown) => asserts a is readonly (Readonly<{
847
+ type: "creation";
848
+ }> | Readonly<MergeIntersection<{
849
+ readonly parameters?: Readonly<{
850
+ update_allows_fetch_and_merge: boolean;
851
+ }> | undefined;
852
+ } & {
853
+ type: "update";
854
+ }>> | Readonly<{
855
+ type: "deletion";
856
+ }> | Readonly<{
857
+ type: "required_linear_history";
858
+ }> | Readonly<MergeIntersection<{
859
+ readonly parameters?: Readonly<{
860
+ grouping_strategy: "ALLGREEN" | "HEADGREEN";
861
+ merge_method: "MERGE" | "SQUASH" | "REBASE";
862
+ check_response_timeout_minutes: number;
863
+ max_entries_to_build: number;
864
+ max_entries_to_merge: number;
865
+ min_entries_to_merge: number;
866
+ min_entries_to_merge_wait_minutes: number;
867
+ }> | undefined;
868
+ } & {
869
+ type: "merge_queue";
870
+ }>> | Readonly<MergeIntersection<{
871
+ readonly parameters?: Readonly<{
872
+ required_deployment_environments: readonly string[];
873
+ }> | undefined;
874
+ } & {
875
+ type: "required_deployments";
876
+ }>> | Readonly<{
877
+ type: "required_signatures";
878
+ }> | Readonly<MergeIntersection<{
879
+ readonly parameters?: Readonly<MergeIntersection<{
880
+ readonly allowed_merge_methods?: readonly ("merge" | "squash" | "rebase")[] | undefined;
881
+ readonly automatic_copilot_code_review_enabled?: boolean | undefined;
882
+ } & {
883
+ dismiss_stale_reviews_on_push: boolean;
884
+ require_code_owner_review: boolean;
885
+ require_last_push_approval: boolean;
886
+ required_approving_review_count: number;
887
+ required_review_thread_resolution: boolean;
888
+ }>> | undefined;
889
+ } & {
890
+ type: "pull_request";
891
+ }>> | Readonly<MergeIntersection<{
892
+ readonly parameters?: Readonly<MergeIntersection<{
893
+ readonly do_not_enforce_on_create?: boolean | undefined;
894
+ } & {
895
+ required_status_checks: readonly Readonly<MergeIntersection<{
896
+ readonly integration_id?: number | undefined;
897
+ } & {
898
+ context: string;
899
+ }>>[];
900
+ strict_required_status_checks_policy: boolean;
901
+ }>> | undefined;
902
+ } & {
903
+ type: "required_status_checks";
904
+ }>> | Readonly<{
905
+ type: "non_fast_forward";
906
+ }> | Readonly<MergeIntersection<{
907
+ readonly parameters?: Readonly<MergeIntersection<{
908
+ readonly name?: string | undefined;
909
+ readonly negate?: boolean | undefined;
910
+ } & {
911
+ operator: "starts_with" | "ends_with" | "contains" | "regex";
912
+ pattern: string;
913
+ }>> | undefined;
914
+ } & {
915
+ type: "commit_message_pattern";
916
+ }>> | Readonly<MergeIntersection<{
917
+ readonly parameters?: Readonly<MergeIntersection<{
918
+ readonly name?: string | undefined;
919
+ readonly negate?: boolean | undefined;
920
+ } & {
921
+ operator: "starts_with" | "ends_with" | "contains" | "regex";
922
+ pattern: string;
923
+ }>> | undefined;
924
+ } & {
925
+ type: "commit_author_email_pattern";
926
+ }>> | Readonly<MergeIntersection<{
927
+ readonly parameters?: Readonly<MergeIntersection<{
928
+ readonly name?: string | undefined;
929
+ readonly negate?: boolean | undefined;
930
+ } & {
931
+ operator: "starts_with" | "ends_with" | "contains" | "regex";
932
+ pattern: string;
933
+ }>> | undefined;
934
+ } & {
935
+ type: "committer_email_pattern";
936
+ }>> | Readonly<MergeIntersection<{
937
+ readonly parameters?: Readonly<MergeIntersection<{
938
+ readonly name?: string | undefined;
939
+ readonly negate?: boolean | undefined;
940
+ } & {
941
+ operator: "starts_with" | "ends_with" | "contains" | "regex";
942
+ pattern: string;
943
+ }>> | undefined;
944
+ } & {
945
+ type: "branch_name_pattern";
946
+ }>> | Readonly<MergeIntersection<{
947
+ readonly parameters?: Readonly<MergeIntersection<{
948
+ readonly name?: string | undefined;
949
+ readonly negate?: boolean | undefined;
950
+ } & {
951
+ operator: "starts_with" | "ends_with" | "contains" | "regex";
952
+ pattern: string;
953
+ }>> | undefined;
954
+ } & {
955
+ type: "tag_name_pattern";
956
+ }>> | Readonly<MergeIntersection<{
957
+ readonly parameters?: Readonly<{
958
+ restricted_file_paths: readonly string[];
959
+ }> | undefined;
960
+ } & {
961
+ type: "file_path_restriction";
962
+ }>> | Readonly<MergeIntersection<{
963
+ readonly parameters?: Readonly<{
964
+ max_file_path_length: number;
965
+ }> | undefined;
966
+ } & {
967
+ type: "max_file_path_length";
968
+ }>> | Readonly<MergeIntersection<{
969
+ readonly parameters?: Readonly<{
970
+ restricted_file_extensions: readonly string[];
971
+ }> | undefined;
972
+ } & {
973
+ type: "file_extension_restriction";
974
+ }>> | Readonly<MergeIntersection<{
975
+ readonly parameters?: Readonly<{
976
+ max_file_size: number;
977
+ }> | undefined;
978
+ } & {
979
+ type: "max_file_size";
980
+ }>> | Readonly<MergeIntersection<{
981
+ readonly parameters?: Readonly<MergeIntersection<{
982
+ readonly do_not_enforce_on_create?: boolean | undefined;
983
+ } & {
984
+ workflows: readonly Readonly<MergeIntersection<{
985
+ readonly ref?: string | undefined;
986
+ readonly sha?: string | undefined;
987
+ } & {
988
+ path: string;
989
+ repository_id: number;
990
+ }>>[];
991
+ }>> | undefined;
992
+ } & {
993
+ type: "workflows";
994
+ }>> | Readonly<MergeIntersection<{
995
+ readonly parameters?: Readonly<{
996
+ code_scanning_tools: readonly Readonly<{
997
+ alerts_threshold: "none" | "errors" | "errors_and_warnings" | "all";
998
+ security_alerts_threshold: "none" | "all" | "critical" | "high_or_higher" | "medium_or_higher";
999
+ tool: string;
1000
+ }>[];
1001
+ }> | undefined;
1002
+ } & {
1003
+ type: "code_scanning";
1004
+ }>> | Readonly<MergeIntersection<{
1005
+ readonly parameters?: Readonly<MergeIntersection<{
1006
+ readonly review_on_push?: boolean | undefined;
1007
+ readonly review_draft_pull_requests?: boolean | undefined;
1008
+ }>> | undefined;
1009
+ } & {
1010
+ type: "copilot_code_review";
1011
+ }>>)[];
1012
+ cast: (a: unknown) => readonly (Readonly<{
1013
+ type: "creation";
1014
+ }> | Readonly<MergeIntersection<{
1015
+ readonly parameters?: Readonly<{
1016
+ update_allows_fetch_and_merge: boolean;
1017
+ }> | undefined;
1018
+ } & {
1019
+ type: "update";
1020
+ }>> | Readonly<{
1021
+ type: "deletion";
1022
+ }> | Readonly<{
1023
+ type: "required_linear_history";
1024
+ }> | Readonly<MergeIntersection<{
1025
+ readonly parameters?: Readonly<{
1026
+ grouping_strategy: "ALLGREEN" | "HEADGREEN";
1027
+ merge_method: "MERGE" | "SQUASH" | "REBASE";
1028
+ check_response_timeout_minutes: number;
1029
+ max_entries_to_build: number;
1030
+ max_entries_to_merge: number;
1031
+ min_entries_to_merge: number;
1032
+ min_entries_to_merge_wait_minutes: number;
1033
+ }> | undefined;
1034
+ } & {
1035
+ type: "merge_queue";
1036
+ }>> | Readonly<MergeIntersection<{
1037
+ readonly parameters?: Readonly<{
1038
+ required_deployment_environments: readonly string[];
1039
+ }> | undefined;
1040
+ } & {
1041
+ type: "required_deployments";
1042
+ }>> | Readonly<{
1043
+ type: "required_signatures";
1044
+ }> | Readonly<MergeIntersection<{
1045
+ readonly parameters?: Readonly<MergeIntersection<{
1046
+ readonly allowed_merge_methods?: readonly ("merge" | "squash" | "rebase")[] | undefined;
1047
+ readonly automatic_copilot_code_review_enabled?: boolean | undefined;
1048
+ } & {
1049
+ dismiss_stale_reviews_on_push: boolean;
1050
+ require_code_owner_review: boolean;
1051
+ require_last_push_approval: boolean;
1052
+ required_approving_review_count: number;
1053
+ required_review_thread_resolution: boolean;
1054
+ }>> | undefined;
1055
+ } & {
1056
+ type: "pull_request";
1057
+ }>> | Readonly<MergeIntersection<{
1058
+ readonly parameters?: Readonly<MergeIntersection<{
1059
+ readonly do_not_enforce_on_create?: boolean | undefined;
1060
+ } & {
1061
+ required_status_checks: readonly Readonly<MergeIntersection<{
1062
+ readonly integration_id?: number | undefined;
1063
+ } & {
1064
+ context: string;
1065
+ }>>[];
1066
+ strict_required_status_checks_policy: boolean;
1067
+ }>> | undefined;
1068
+ } & {
1069
+ type: "required_status_checks";
1070
+ }>> | Readonly<{
1071
+ type: "non_fast_forward";
1072
+ }> | Readonly<MergeIntersection<{
1073
+ readonly parameters?: Readonly<MergeIntersection<{
1074
+ readonly name?: string | undefined;
1075
+ readonly negate?: boolean | undefined;
1076
+ } & {
1077
+ operator: "starts_with" | "ends_with" | "contains" | "regex";
1078
+ pattern: string;
1079
+ }>> | undefined;
1080
+ } & {
1081
+ type: "commit_message_pattern";
1082
+ }>> | Readonly<MergeIntersection<{
1083
+ readonly parameters?: Readonly<MergeIntersection<{
1084
+ readonly name?: string | undefined;
1085
+ readonly negate?: boolean | undefined;
1086
+ } & {
1087
+ operator: "starts_with" | "ends_with" | "contains" | "regex";
1088
+ pattern: string;
1089
+ }>> | undefined;
1090
+ } & {
1091
+ type: "commit_author_email_pattern";
1092
+ }>> | Readonly<MergeIntersection<{
1093
+ readonly parameters?: Readonly<MergeIntersection<{
1094
+ readonly name?: string | undefined;
1095
+ readonly negate?: boolean | undefined;
1096
+ } & {
1097
+ operator: "starts_with" | "ends_with" | "contains" | "regex";
1098
+ pattern: string;
1099
+ }>> | undefined;
1100
+ } & {
1101
+ type: "committer_email_pattern";
1102
+ }>> | Readonly<MergeIntersection<{
1103
+ readonly parameters?: Readonly<MergeIntersection<{
1104
+ readonly name?: string | undefined;
1105
+ readonly negate?: boolean | undefined;
1106
+ } & {
1107
+ operator: "starts_with" | "ends_with" | "contains" | "regex";
1108
+ pattern: string;
1109
+ }>> | undefined;
1110
+ } & {
1111
+ type: "branch_name_pattern";
1112
+ }>> | Readonly<MergeIntersection<{
1113
+ readonly parameters?: Readonly<MergeIntersection<{
1114
+ readonly name?: string | undefined;
1115
+ readonly negate?: boolean | undefined;
1116
+ } & {
1117
+ operator: "starts_with" | "ends_with" | "contains" | "regex";
1118
+ pattern: string;
1119
+ }>> | undefined;
1120
+ } & {
1121
+ type: "tag_name_pattern";
1122
+ }>> | Readonly<MergeIntersection<{
1123
+ readonly parameters?: Readonly<{
1124
+ restricted_file_paths: readonly string[];
1125
+ }> | undefined;
1126
+ } & {
1127
+ type: "file_path_restriction";
1128
+ }>> | Readonly<MergeIntersection<{
1129
+ readonly parameters?: Readonly<{
1130
+ max_file_path_length: number;
1131
+ }> | undefined;
1132
+ } & {
1133
+ type: "max_file_path_length";
1134
+ }>> | Readonly<MergeIntersection<{
1135
+ readonly parameters?: Readonly<{
1136
+ restricted_file_extensions: readonly string[];
1137
+ }> | undefined;
1138
+ } & {
1139
+ type: "file_extension_restriction";
1140
+ }>> | Readonly<MergeIntersection<{
1141
+ readonly parameters?: Readonly<{
1142
+ max_file_size: number;
1143
+ }> | undefined;
1144
+ } & {
1145
+ type: "max_file_size";
1146
+ }>> | Readonly<MergeIntersection<{
1147
+ readonly parameters?: Readonly<MergeIntersection<{
1148
+ readonly do_not_enforce_on_create?: boolean | undefined;
1149
+ } & {
1150
+ workflows: readonly Readonly<MergeIntersection<{
1151
+ readonly ref?: string | undefined;
1152
+ readonly sha?: string | undefined;
1153
+ } & {
1154
+ path: string;
1155
+ repository_id: number;
1156
+ }>>[];
1157
+ }>> | undefined;
1158
+ } & {
1159
+ type: "workflows";
1160
+ }>> | Readonly<MergeIntersection<{
1161
+ readonly parameters?: Readonly<{
1162
+ code_scanning_tools: readonly Readonly<{
1163
+ alerts_threshold: "none" | "errors" | "errors_and_warnings" | "all";
1164
+ security_alerts_threshold: "none" | "all" | "critical" | "high_or_higher" | "medium_or_higher";
1165
+ tool: string;
1166
+ }>[];
1167
+ }> | undefined;
1168
+ } & {
1169
+ type: "code_scanning";
1170
+ }>> | Readonly<MergeIntersection<{
1171
+ readonly parameters?: Readonly<MergeIntersection<{
1172
+ readonly review_on_push?: boolean | undefined;
1173
+ readonly review_draft_pull_requests?: boolean | undefined;
1174
+ }>> | undefined;
1175
+ } & {
1176
+ type: "copilot_code_review";
1177
+ }>>)[];
1178
+ fill: (a: unknown) => readonly (Readonly<{
1179
+ type: "creation";
1180
+ }> | Readonly<MergeIntersection<{
1181
+ readonly parameters?: Readonly<{
1182
+ update_allows_fetch_and_merge: boolean;
1183
+ }> | undefined;
1184
+ } & {
1185
+ type: "update";
1186
+ }>> | Readonly<{
1187
+ type: "deletion";
1188
+ }> | Readonly<{
1189
+ type: "required_linear_history";
1190
+ }> | Readonly<MergeIntersection<{
1191
+ readonly parameters?: Readonly<{
1192
+ grouping_strategy: "ALLGREEN" | "HEADGREEN";
1193
+ merge_method: "MERGE" | "SQUASH" | "REBASE";
1194
+ check_response_timeout_minutes: number;
1195
+ max_entries_to_build: number;
1196
+ max_entries_to_merge: number;
1197
+ min_entries_to_merge: number;
1198
+ min_entries_to_merge_wait_minutes: number;
1199
+ }> | undefined;
1200
+ } & {
1201
+ type: "merge_queue";
1202
+ }>> | Readonly<MergeIntersection<{
1203
+ readonly parameters?: Readonly<{
1204
+ required_deployment_environments: readonly string[];
1205
+ }> | undefined;
1206
+ } & {
1207
+ type: "required_deployments";
1208
+ }>> | Readonly<{
1209
+ type: "required_signatures";
1210
+ }> | Readonly<MergeIntersection<{
1211
+ readonly parameters?: Readonly<MergeIntersection<{
1212
+ readonly allowed_merge_methods?: readonly ("merge" | "squash" | "rebase")[] | undefined;
1213
+ readonly automatic_copilot_code_review_enabled?: boolean | undefined;
1214
+ } & {
1215
+ dismiss_stale_reviews_on_push: boolean;
1216
+ require_code_owner_review: boolean;
1217
+ require_last_push_approval: boolean;
1218
+ required_approving_review_count: number;
1219
+ required_review_thread_resolution: boolean;
1220
+ }>> | undefined;
1221
+ } & {
1222
+ type: "pull_request";
1223
+ }>> | Readonly<MergeIntersection<{
1224
+ readonly parameters?: Readonly<MergeIntersection<{
1225
+ readonly do_not_enforce_on_create?: boolean | undefined;
1226
+ } & {
1227
+ required_status_checks: readonly Readonly<MergeIntersection<{
1228
+ readonly integration_id?: number | undefined;
1229
+ } & {
1230
+ context: string;
1231
+ }>>[];
1232
+ strict_required_status_checks_policy: boolean;
1233
+ }>> | undefined;
1234
+ } & {
1235
+ type: "required_status_checks";
1236
+ }>> | Readonly<{
1237
+ type: "non_fast_forward";
1238
+ }> | Readonly<MergeIntersection<{
1239
+ readonly parameters?: Readonly<MergeIntersection<{
1240
+ readonly name?: string | undefined;
1241
+ readonly negate?: boolean | undefined;
1242
+ } & {
1243
+ operator: "starts_with" | "ends_with" | "contains" | "regex";
1244
+ pattern: string;
1245
+ }>> | undefined;
1246
+ } & {
1247
+ type: "commit_message_pattern";
1248
+ }>> | Readonly<MergeIntersection<{
1249
+ readonly parameters?: Readonly<MergeIntersection<{
1250
+ readonly name?: string | undefined;
1251
+ readonly negate?: boolean | undefined;
1252
+ } & {
1253
+ operator: "starts_with" | "ends_with" | "contains" | "regex";
1254
+ pattern: string;
1255
+ }>> | undefined;
1256
+ } & {
1257
+ type: "commit_author_email_pattern";
1258
+ }>> | Readonly<MergeIntersection<{
1259
+ readonly parameters?: Readonly<MergeIntersection<{
1260
+ readonly name?: string | undefined;
1261
+ readonly negate?: boolean | undefined;
1262
+ } & {
1263
+ operator: "starts_with" | "ends_with" | "contains" | "regex";
1264
+ pattern: string;
1265
+ }>> | undefined;
1266
+ } & {
1267
+ type: "committer_email_pattern";
1268
+ }>> | Readonly<MergeIntersection<{
1269
+ readonly parameters?: Readonly<MergeIntersection<{
1270
+ readonly name?: string | undefined;
1271
+ readonly negate?: boolean | undefined;
1272
+ } & {
1273
+ operator: "starts_with" | "ends_with" | "contains" | "regex";
1274
+ pattern: string;
1275
+ }>> | undefined;
1276
+ } & {
1277
+ type: "branch_name_pattern";
1278
+ }>> | Readonly<MergeIntersection<{
1279
+ readonly parameters?: Readonly<MergeIntersection<{
1280
+ readonly name?: string | undefined;
1281
+ readonly negate?: boolean | undefined;
1282
+ } & {
1283
+ operator: "starts_with" | "ends_with" | "contains" | "regex";
1284
+ pattern: string;
1285
+ }>> | undefined;
1286
+ } & {
1287
+ type: "tag_name_pattern";
1288
+ }>> | Readonly<MergeIntersection<{
1289
+ readonly parameters?: Readonly<{
1290
+ restricted_file_paths: readonly string[];
1291
+ }> | undefined;
1292
+ } & {
1293
+ type: "file_path_restriction";
1294
+ }>> | Readonly<MergeIntersection<{
1295
+ readonly parameters?: Readonly<{
1296
+ max_file_path_length: number;
1297
+ }> | undefined;
1298
+ } & {
1299
+ type: "max_file_path_length";
1300
+ }>> | Readonly<MergeIntersection<{
1301
+ readonly parameters?: Readonly<{
1302
+ restricted_file_extensions: readonly string[];
1303
+ }> | undefined;
1304
+ } & {
1305
+ type: "file_extension_restriction";
1306
+ }>> | Readonly<MergeIntersection<{
1307
+ readonly parameters?: Readonly<{
1308
+ max_file_size: number;
1309
+ }> | undefined;
1310
+ } & {
1311
+ type: "max_file_size";
1312
+ }>> | Readonly<MergeIntersection<{
1313
+ readonly parameters?: Readonly<MergeIntersection<{
1314
+ readonly do_not_enforce_on_create?: boolean | undefined;
1315
+ } & {
1316
+ workflows: readonly Readonly<MergeIntersection<{
1317
+ readonly ref?: string | undefined;
1318
+ readonly sha?: string | undefined;
1319
+ } & {
1320
+ path: string;
1321
+ repository_id: number;
1322
+ }>>[];
1323
+ }>> | undefined;
1324
+ } & {
1325
+ type: "workflows";
1326
+ }>> | Readonly<MergeIntersection<{
1327
+ readonly parameters?: Readonly<{
1328
+ code_scanning_tools: readonly Readonly<{
1329
+ alerts_threshold: "none" | "errors" | "errors_and_warnings" | "all";
1330
+ security_alerts_threshold: "none" | "all" | "critical" | "high_or_higher" | "medium_or_higher";
1331
+ tool: string;
1332
+ }>[];
1333
+ }> | undefined;
1334
+ } & {
1335
+ type: "code_scanning";
1336
+ }>> | Readonly<MergeIntersection<{
1337
+ readonly parameters?: Readonly<MergeIntersection<{
1338
+ readonly review_on_push?: boolean | undefined;
1339
+ readonly review_draft_pull_requests?: boolean | undefined;
1340
+ }>> | undefined;
1341
+ } & {
1342
+ type: "copilot_code_review";
1343
+ }>>)[];
1344
+ validate: (a: unknown) => Result<readonly (Readonly<{
1345
+ type: "creation";
1346
+ }> | Readonly<MergeIntersection<{
1347
+ readonly parameters?: Readonly<{
1348
+ update_allows_fetch_and_merge: boolean;
1349
+ }> | undefined;
1350
+ } & {
1351
+ type: "update";
1352
+ }>> | Readonly<{
1353
+ type: "deletion";
1354
+ }> | Readonly<{
1355
+ type: "required_linear_history";
1356
+ }> | Readonly<MergeIntersection<{
1357
+ readonly parameters?: Readonly<{
1358
+ grouping_strategy: "ALLGREEN" | "HEADGREEN";
1359
+ merge_method: "MERGE" | "SQUASH" | "REBASE";
1360
+ check_response_timeout_minutes: number;
1361
+ max_entries_to_build: number;
1362
+ max_entries_to_merge: number;
1363
+ min_entries_to_merge: number;
1364
+ min_entries_to_merge_wait_minutes: number;
1365
+ }> | undefined;
1366
+ } & {
1367
+ type: "merge_queue";
1368
+ }>> | Readonly<MergeIntersection<{
1369
+ readonly parameters?: Readonly<{
1370
+ required_deployment_environments: readonly string[];
1371
+ }> | undefined;
1372
+ } & {
1373
+ type: "required_deployments";
1374
+ }>> | Readonly<{
1375
+ type: "required_signatures";
1376
+ }> | Readonly<MergeIntersection<{
1377
+ readonly parameters?: Readonly<MergeIntersection<{
1378
+ readonly allowed_merge_methods?: readonly ("merge" | "squash" | "rebase")[] | undefined;
1379
+ readonly automatic_copilot_code_review_enabled?: boolean | undefined;
1380
+ } & {
1381
+ dismiss_stale_reviews_on_push: boolean;
1382
+ require_code_owner_review: boolean;
1383
+ require_last_push_approval: boolean;
1384
+ required_approving_review_count: number;
1385
+ required_review_thread_resolution: boolean;
1386
+ }>> | undefined;
1387
+ } & {
1388
+ type: "pull_request";
1389
+ }>> | Readonly<MergeIntersection<{
1390
+ readonly parameters?: Readonly<MergeIntersection<{
1391
+ readonly do_not_enforce_on_create?: boolean | undefined;
1392
+ } & {
1393
+ required_status_checks: readonly Readonly<MergeIntersection<{
1394
+ readonly integration_id?: number | undefined;
1395
+ } & {
1396
+ context: string;
1397
+ }>>[];
1398
+ strict_required_status_checks_policy: boolean;
1399
+ }>> | undefined;
1400
+ } & {
1401
+ type: "required_status_checks";
1402
+ }>> | Readonly<{
1403
+ type: "non_fast_forward";
1404
+ }> | Readonly<MergeIntersection<{
1405
+ readonly parameters?: Readonly<MergeIntersection<{
1406
+ readonly name?: string | undefined;
1407
+ readonly negate?: boolean | undefined;
1408
+ } & {
1409
+ operator: "starts_with" | "ends_with" | "contains" | "regex";
1410
+ pattern: string;
1411
+ }>> | undefined;
1412
+ } & {
1413
+ type: "commit_message_pattern";
1414
+ }>> | Readonly<MergeIntersection<{
1415
+ readonly parameters?: Readonly<MergeIntersection<{
1416
+ readonly name?: string | undefined;
1417
+ readonly negate?: boolean | undefined;
1418
+ } & {
1419
+ operator: "starts_with" | "ends_with" | "contains" | "regex";
1420
+ pattern: string;
1421
+ }>> | undefined;
1422
+ } & {
1423
+ type: "commit_author_email_pattern";
1424
+ }>> | Readonly<MergeIntersection<{
1425
+ readonly parameters?: Readonly<MergeIntersection<{
1426
+ readonly name?: string | undefined;
1427
+ readonly negate?: boolean | undefined;
1428
+ } & {
1429
+ operator: "starts_with" | "ends_with" | "contains" | "regex";
1430
+ pattern: string;
1431
+ }>> | undefined;
1432
+ } & {
1433
+ type: "committer_email_pattern";
1434
+ }>> | Readonly<MergeIntersection<{
1435
+ readonly parameters?: Readonly<MergeIntersection<{
1436
+ readonly name?: string | undefined;
1437
+ readonly negate?: boolean | undefined;
1438
+ } & {
1439
+ operator: "starts_with" | "ends_with" | "contains" | "regex";
1440
+ pattern: string;
1441
+ }>> | undefined;
1442
+ } & {
1443
+ type: "branch_name_pattern";
1444
+ }>> | Readonly<MergeIntersection<{
1445
+ readonly parameters?: Readonly<MergeIntersection<{
1446
+ readonly name?: string | undefined;
1447
+ readonly negate?: boolean | undefined;
1448
+ } & {
1449
+ operator: "starts_with" | "ends_with" | "contains" | "regex";
1450
+ pattern: string;
1451
+ }>> | undefined;
1452
+ } & {
1453
+ type: "tag_name_pattern";
1454
+ }>> | Readonly<MergeIntersection<{
1455
+ readonly parameters?: Readonly<{
1456
+ restricted_file_paths: readonly string[];
1457
+ }> | undefined;
1458
+ } & {
1459
+ type: "file_path_restriction";
1460
+ }>> | Readonly<MergeIntersection<{
1461
+ readonly parameters?: Readonly<{
1462
+ max_file_path_length: number;
1463
+ }> | undefined;
1464
+ } & {
1465
+ type: "max_file_path_length";
1466
+ }>> | Readonly<MergeIntersection<{
1467
+ readonly parameters?: Readonly<{
1468
+ restricted_file_extensions: readonly string[];
1469
+ }> | undefined;
1470
+ } & {
1471
+ type: "file_extension_restriction";
1472
+ }>> | Readonly<MergeIntersection<{
1473
+ readonly parameters?: Readonly<{
1474
+ max_file_size: number;
1475
+ }> | undefined;
1476
+ } & {
1477
+ type: "max_file_size";
1478
+ }>> | Readonly<MergeIntersection<{
1479
+ readonly parameters?: Readonly<MergeIntersection<{
1480
+ readonly do_not_enforce_on_create?: boolean | undefined;
1481
+ } & {
1482
+ workflows: readonly Readonly<MergeIntersection<{
1483
+ readonly ref?: string | undefined;
1484
+ readonly sha?: string | undefined;
1485
+ } & {
1486
+ path: string;
1487
+ repository_id: number;
1488
+ }>>[];
1489
+ }>> | undefined;
1490
+ } & {
1491
+ type: "workflows";
1492
+ }>> | Readonly<MergeIntersection<{
1493
+ readonly parameters?: Readonly<{
1494
+ code_scanning_tools: readonly Readonly<{
1495
+ alerts_threshold: "none" | "errors" | "errors_and_warnings" | "all";
1496
+ security_alerts_threshold: "none" | "all" | "critical" | "high_or_higher" | "medium_or_higher";
1497
+ tool: string;
1498
+ }>[];
1499
+ }> | undefined;
1500
+ } & {
1501
+ type: "code_scanning";
1502
+ }>> | Readonly<MergeIntersection<{
1503
+ readonly parameters?: Readonly<MergeIntersection<{
1504
+ readonly review_on_push?: boolean | undefined;
1505
+ readonly review_draft_pull_requests?: boolean | undefined;
1506
+ }>> | undefined;
1507
+ } & {
1508
+ type: "copilot_code_review";
1509
+ }>>)[], readonly Readonly<{
1510
+ path: readonly string[];
1511
+ actualValue: unknown;
1512
+ expectedType: string;
1513
+ typeName: string;
1514
+ details?: t.ValidationErrorDetails | undefined;
1515
+ }>[]>;
1516
+ optional?: true;
1517
+ }>>;
1518
+ readonly created_at: t.OptionalPropertyType<Readonly<{
1519
+ typeName: string;
1520
+ defaultValue: string;
1521
+ is: (a: unknown) => a is string;
1522
+ assertIs: (a: unknown) => asserts a is string;
1523
+ cast: (a: unknown) => string;
1524
+ fill: (a: unknown) => string;
1525
+ validate: (a: unknown) => Result<string, readonly Readonly<{
1526
+ path: readonly string[];
1527
+ actualValue: unknown;
1528
+ expectedType: string;
1529
+ typeName: string;
1530
+ details?: t.ValidationErrorDetails | undefined;
1531
+ }>[]>;
1532
+ optional?: true;
1533
+ }>>;
1534
+ readonly updated_at: t.OptionalPropertyType<Readonly<{
1535
+ typeName: string;
1536
+ defaultValue: string;
1537
+ is: (a: unknown) => a is string;
1538
+ assertIs: (a: unknown) => asserts a is string;
1539
+ cast: (a: unknown) => string;
1540
+ fill: (a: unknown) => string;
1541
+ validate: (a: unknown) => Result<string, readonly Readonly<{
1542
+ path: readonly string[];
1543
+ actualValue: unknown;
1544
+ expectedType: string;
1545
+ typeName: string;
1546
+ details?: t.ValidationErrorDetails | undefined;
1547
+ }>[]>;
1548
+ optional?: true;
1549
+ }>>;
1550
+ }, readonly ["id", "name", "target", "enforcement", "bypass_actors", "conditions", "rules"], "strip">;
1551
+ export type RulesetPicked = t.TypeOf<typeof RulesetPicked>;
1552
+ //# sourceMappingURL=constants.d.mts.map