|
20 | 20 | from githubkit.utils import UNSET, exclude_unset |
21 | 21 |
|
22 | 22 | if TYPE_CHECKING: |
23 | | - from typing import Literal |
| 23 | + from typing import Literal, Union |
24 | 24 |
|
25 | 25 | from githubkit import GitHubCore |
26 | 26 | from githubkit.response import Response |
@@ -79,6 +79,7 @@ def list_alerts_for_enterprise( |
79 | 79 | ecosystem: Missing[str] = UNSET, |
80 | 80 | package: Missing[str] = UNSET, |
81 | 81 | epss_percentage: Missing[str] = UNSET, |
| 82 | + has: Missing[Union[str, list[Literal["patch"]]]] = UNSET, |
82 | 83 | scope: Missing[Literal["development", "runtime"]] = UNSET, |
83 | 84 | sort: Missing[Literal["created", "updated", "epss_percentage"]] = UNSET, |
84 | 85 | direction: Missing[Literal["asc", "desc"]] = UNSET, |
@@ -120,6 +121,7 @@ def list_alerts_for_enterprise( |
120 | 121 | "ecosystem": ecosystem, |
121 | 122 | "package": package, |
122 | 123 | "epss_percentage": epss_percentage, |
| 124 | + "has": has, |
123 | 125 | "scope": scope, |
124 | 126 | "sort": sort, |
125 | 127 | "direction": direction, |
@@ -154,6 +156,7 @@ async def async_list_alerts_for_enterprise( |
154 | 156 | ecosystem: Missing[str] = UNSET, |
155 | 157 | package: Missing[str] = UNSET, |
156 | 158 | epss_percentage: Missing[str] = UNSET, |
| 159 | + has: Missing[Union[str, list[Literal["patch"]]]] = UNSET, |
157 | 160 | scope: Missing[Literal["development", "runtime"]] = UNSET, |
158 | 161 | sort: Missing[Literal["created", "updated", "epss_percentage"]] = UNSET, |
159 | 162 | direction: Missing[Literal["asc", "desc"]] = UNSET, |
@@ -195,6 +198,7 @@ async def async_list_alerts_for_enterprise( |
195 | 198 | "ecosystem": ecosystem, |
196 | 199 | "package": package, |
197 | 200 | "epss_percentage": epss_percentage, |
| 201 | + "has": has, |
198 | 202 | "scope": scope, |
199 | 203 | "sort": sort, |
200 | 204 | "direction": direction, |
@@ -229,6 +233,7 @@ def list_alerts_for_org( |
229 | 233 | ecosystem: Missing[str] = UNSET, |
230 | 234 | package: Missing[str] = UNSET, |
231 | 235 | epss_percentage: Missing[str] = UNSET, |
| 236 | + has: Missing[Union[str, list[Literal["patch"]]]] = UNSET, |
232 | 237 | scope: Missing[Literal["development", "runtime"]] = UNSET, |
233 | 238 | sort: Missing[Literal["created", "updated", "epss_percentage"]] = UNSET, |
234 | 239 | direction: Missing[Literal["asc", "desc"]] = UNSET, |
@@ -268,6 +273,7 @@ def list_alerts_for_org( |
268 | 273 | "ecosystem": ecosystem, |
269 | 274 | "package": package, |
270 | 275 | "epss_percentage": epss_percentage, |
| 276 | + "has": has, |
271 | 277 | "scope": scope, |
272 | 278 | "sort": sort, |
273 | 279 | "direction": direction, |
@@ -303,6 +309,7 @@ async def async_list_alerts_for_org( |
303 | 309 | ecosystem: Missing[str] = UNSET, |
304 | 310 | package: Missing[str] = UNSET, |
305 | 311 | epss_percentage: Missing[str] = UNSET, |
| 312 | + has: Missing[Union[str, list[Literal["patch"]]]] = UNSET, |
306 | 313 | scope: Missing[Literal["development", "runtime"]] = UNSET, |
307 | 314 | sort: Missing[Literal["created", "updated", "epss_percentage"]] = UNSET, |
308 | 315 | direction: Missing[Literal["asc", "desc"]] = UNSET, |
@@ -342,6 +349,7 @@ async def async_list_alerts_for_org( |
342 | 349 | "ecosystem": ecosystem, |
343 | 350 | "package": package, |
344 | 351 | "epss_percentage": epss_percentage, |
| 352 | + "has": has, |
345 | 353 | "scope": scope, |
346 | 354 | "sort": sort, |
347 | 355 | "direction": direction, |
@@ -1143,6 +1151,7 @@ def list_alerts_for_repo( |
1143 | 1151 | package: Missing[str] = UNSET, |
1144 | 1152 | manifest: Missing[str] = UNSET, |
1145 | 1153 | epss_percentage: Missing[str] = UNSET, |
| 1154 | + has: Missing[Union[str, list[Literal["patch"]]]] = UNSET, |
1146 | 1155 | scope: Missing[Literal["development", "runtime"]] = UNSET, |
1147 | 1156 | sort: Missing[Literal["created", "updated", "epss_percentage"]] = UNSET, |
1148 | 1157 | direction: Missing[Literal["asc", "desc"]] = UNSET, |
@@ -1174,6 +1183,7 @@ def list_alerts_for_repo( |
1174 | 1183 | "package": package, |
1175 | 1184 | "manifest": manifest, |
1176 | 1185 | "epss_percentage": epss_percentage, |
| 1186 | + "has": has, |
1177 | 1187 | "scope": scope, |
1178 | 1188 | "sort": sort, |
1179 | 1189 | "direction": direction, |
@@ -1212,6 +1222,7 @@ async def async_list_alerts_for_repo( |
1212 | 1222 | package: Missing[str] = UNSET, |
1213 | 1223 | manifest: Missing[str] = UNSET, |
1214 | 1224 | epss_percentage: Missing[str] = UNSET, |
| 1225 | + has: Missing[Union[str, list[Literal["patch"]]]] = UNSET, |
1215 | 1226 | scope: Missing[Literal["development", "runtime"]] = UNSET, |
1216 | 1227 | sort: Missing[Literal["created", "updated", "epss_percentage"]] = UNSET, |
1217 | 1228 | direction: Missing[Literal["asc", "desc"]] = UNSET, |
@@ -1243,6 +1254,7 @@ async def async_list_alerts_for_repo( |
1243 | 1254 | "package": package, |
1244 | 1255 | "manifest": manifest, |
1245 | 1256 | "epss_percentage": epss_percentage, |
| 1257 | + "has": has, |
1246 | 1258 | "scope": scope, |
1247 | 1259 | "sort": sort, |
1248 | 1260 | "direction": direction, |
|
0 commit comments