Skip to content

Commit b7933ed

Browse files
authored
👽 re-generate openapi models and apis
1 parent 34e05d7 commit b7933ed

3,998 files changed

Lines changed: 139767 additions & 98399 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

githubkit/rest/__init__.py

Lines changed: 416 additions & 0 deletions
Large diffs are not rendered by default.

githubkit/versions/ghec_v2022_11_28/models/__init__.py

Lines changed: 1617 additions & 1135 deletions
Large diffs are not rendered by default.

githubkit/versions/ghec_v2022_11_28/models/group_0094.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ class DependabotAlertSecurityAdvisory(GitHubModel):
4747
severity: Literal["low", "medium", "high", "critical"] = Field(
4848
description="The severity of the advisory."
4949
)
50+
classification: Missing[Literal["general", "malware"]] = Field(
51+
default=UNSET, description="The classification of the advisory."
52+
)
5053
cvss: DependabotAlertSecurityAdvisoryPropCvss = Field(
5154
description="Details for the advisory pertaining to the Common Vulnerability Scoring System."
5255
)

githubkit/versions/ghec_v2022_11_28/models/group_0179.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
from pydantic import Field
1313

1414
from githubkit.compat import GitHubModel, model_rebuild
15+
from githubkit.typing import Missing
16+
from githubkit.utils import UNSET
1517

1618

1719
class SecretScanningLocationCommit(GitHubModel):
@@ -40,6 +42,10 @@ class SecretScanningLocationCommit(GitHubModel):
4042
commit_url: str = Field(
4143
description="The API URL to get the associated commit resource"
4244
)
45+
html_url: Missing[str] = Field(
46+
default=UNSET,
47+
description="The GitHub URL to get the associated commit resource.",
48+
)
4349

4450

4551
class SecretScanningLocationWikiCommit(GitHubModel):
@@ -80,6 +86,10 @@ class SecretScanningLocationIssueBody(GitHubModel):
8086
issue_body_url: str = Field(
8187
description="The API URL to get the issue where the secret was detected."
8288
)
89+
html_url: Missing[str] = Field(
90+
default=UNSET,
91+
description="The GitHub URL for the issue where the secret was detected.",
92+
)
8393

8494

8595
class SecretScanningLocationDiscussionTitle(GitHubModel):
@@ -116,6 +126,10 @@ class SecretScanningLocationPullRequestBody(GitHubModel):
116126
pull_request_body_url: str = Field(
117127
description="The API URL to get the pull request where the secret was detected."
118128
)
129+
html_url: Missing[str] = Field(
130+
default=UNSET,
131+
description="The GitHub URL for the pull request where the secret was detected.",
132+
)
119133

120134

121135
class SecretScanningLocationPullRequestReview(GitHubModel):
@@ -128,6 +142,10 @@ class SecretScanningLocationPullRequestReview(GitHubModel):
128142
pull_request_review_url: str = Field(
129143
description="The API URL to get the pull request review where the secret was detected."
130144
)
145+
html_url: Missing[str] = Field(
146+
default=UNSET,
147+
description="The GitHub URL for the pull request review where the secret was detected.",
148+
)
131149

132150

133151
model_rebuild(SecretScanningLocationCommit)

githubkit/versions/ghec_v2022_11_28/models/group_0180.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
from pydantic import Field
1313

1414
from githubkit.compat import GitHubModel, model_rebuild
15+
from githubkit.typing import Missing
16+
from githubkit.utils import UNSET
1517

1618

1719
class SecretScanningLocationIssueTitle(GitHubModel):
@@ -24,6 +26,10 @@ class SecretScanningLocationIssueTitle(GitHubModel):
2426
issue_title_url: str = Field(
2527
description="The API URL to get the issue where the secret was detected."
2628
)
29+
html_url: Missing[str] = Field(
30+
default=UNSET,
31+
description="The GitHub URL for the issue where the secret was detected.",
32+
)
2733

2834

2935
class SecretScanningLocationIssueComment(GitHubModel):
@@ -36,6 +42,10 @@ class SecretScanningLocationIssueComment(GitHubModel):
3642
issue_comment_url: str = Field(
3743
description="The API URL to get the issue comment where the secret was detected."
3844
)
45+
html_url: Missing[str] = Field(
46+
default=UNSET,
47+
description="The GitHub URL for the issue comment where the secret was detected.",
48+
)
3949

4050

4151
class SecretScanningLocationPullRequestTitle(GitHubModel):
@@ -48,6 +58,10 @@ class SecretScanningLocationPullRequestTitle(GitHubModel):
4858
pull_request_title_url: str = Field(
4959
description="The API URL to get the pull request where the secret was detected."
5060
)
61+
html_url: Missing[str] = Field(
62+
default=UNSET,
63+
description="The GitHub URL for the pull request where the secret was detected.",
64+
)
5165

5266

5367
class SecretScanningLocationPullRequestReviewComment(GitHubModel):
@@ -61,6 +75,10 @@ class SecretScanningLocationPullRequestReviewComment(GitHubModel):
6175
pull_request_review_comment_url: str = Field(
6276
description="The API URL to get the pull request review comment where the secret was detected."
6377
)
78+
html_url: Missing[str] = Field(
79+
default=UNSET,
80+
description="The GitHub URL for the pull request review comment where the secret was detected.",
81+
)
6482

6583

6684
model_rebuild(SecretScanningLocationIssueTitle)

githubkit/versions/ghec_v2022_11_28/models/group_0181.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
from pydantic import Field
1313

1414
from githubkit.compat import GitHubModel, model_rebuild
15+
from githubkit.typing import Missing
16+
from githubkit.utils import UNSET
1517

1618

1719
class SecretScanningLocationDiscussionBody(GitHubModel):
@@ -36,6 +38,10 @@ class SecretScanningLocationPullRequestComment(GitHubModel):
3638
pull_request_comment_url: str = Field(
3739
description="The API URL to get the pull request comment where the secret was detected."
3840
)
41+
html_url: Missing[str] = Field(
42+
default=UNSET,
43+
description="The GitHub URL for the pull request comment where the secret was detected.",
44+
)
3945

4046

4147
model_rebuild(SecretScanningLocationDiscussionBody)

githubkit/versions/ghec_v2022_11_28/models/group_0182.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,15 @@ class OrganizationSecretScanningAlert(GitHubModel):
154154
description="A boolean value representing whether or not the token in the alert was detected in more than one location.",
155155
)
156156
assigned_to: Missing[Union[None, SimpleUser]] = Field(default=UNSET)
157+
closure_request_comment: Missing[Union[str, None]] = Field(
158+
default=UNSET,
159+
description="An optional comment from the closure request author.",
160+
)
161+
closure_request_reviewer_comment: Missing[Union[str, None]] = Field(
162+
default=UNSET,
163+
description="An optional comment from the closure request reviewer.",
164+
)
165+
closure_request_reviewer: Missing[Union[None, SimpleUser]] = Field(default=UNSET)
157166

158167

159168
model_rebuild(OrganizationSecretScanningAlert)

githubkit/versions/ghec_v2022_11_28/models/group_0508.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,15 @@ class SecretScanningAlert(GitHubModel):
149149
description="A boolean value representing whether or not the token in the alert was detected in more than one location.",
150150
)
151151
assigned_to: Missing[Union[None, SimpleUser]] = Field(default=UNSET)
152+
closure_request_comment: Missing[Union[str, None]] = Field(
153+
default=UNSET,
154+
description="An optional comment from the closure request author.",
155+
)
156+
closure_request_reviewer_comment: Missing[Union[str, None]] = Field(
157+
default=UNSET,
158+
description="An optional comment from the closure request reviewer.",
159+
)
160+
closure_request_reviewer: Missing[Union[None, SimpleUser]] = Field(default=UNSET)
152161

153162

154163
model_rebuild(SecretScanningAlert)

githubkit/versions/ghec_v2022_11_28/models/group_0570.py

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ class ExemptionRequest(GitHubModel):
5151
"secret_scanning_closure",
5252
"code_scanning_alert_dismissal",
5353
"dependabot_alert_dismissal",
54+
"license_compliance_dismissal",
5455
]
5556
] = Field(default=UNSET, description="The type of request.")
5657
exemption_request_data: Missing[
@@ -60,6 +61,7 @@ class ExemptionRequest(GitHubModel):
6061
DismissalRequestSecretScanning,
6162
DismissalRequestCodeScanning,
6263
DismissalRequestDependabot,
64+
DismissalRequestLicenseCompliance,
6365
]
6466
] = Field(default=UNSET)
6567
resource_identifier: Missing[str] = Field(
@@ -79,6 +81,7 @@ class ExemptionRequest(GitHubModel):
7981
DismissalRequestSecretScanningMetadata,
8082
DismissalRequestCodeScanningMetadata,
8183
DismissalRequestDependabotMetadata,
84+
DismissalRequestLicenseComplianceMetadata,
8285
None,
8386
]
8487
] = Field(default=UNSET, description="Metadata about the exemption request.")
@@ -156,6 +159,20 @@ class DismissalRequestDependabotMetadata(GitHubModel):
156159
] = Field(default=UNSET, description="The reason for the dismissal request")
157160

158161

162+
class DismissalRequestLicenseComplianceMetadata(GitHubModel):
163+
"""License compliance alert closure request metadata
164+
165+
Metadata for a License compliance alert closure request.
166+
"""
167+
168+
alert_title: Missing[str] = Field(
169+
default=UNSET, description="The title of the License compliance alert"
170+
)
171+
reason: Missing[Literal["amendment", "private package", "inaccurate license"]] = (
172+
Field(default=UNSET, description="The reason for the closure request")
173+
)
174+
175+
159176
class ExemptionRequestPushRulesetBypass(GitHubModel):
160177
"""Push ruleset bypass exemption request data
161178
@@ -265,6 +282,29 @@ class DismissalRequestDependabotPropDataItems(GitHubModel):
265282
)
266283

267284

285+
class DismissalRequestLicenseCompliance(GitHubModel):
286+
"""License compliance alert closure request data
287+
288+
License compliance alerts that have closure requests.
289+
"""
290+
291+
type: Missing[Literal["license_compliance_dismissal"]] = Field(
292+
default=UNSET, description="The type of request"
293+
)
294+
data: Missing[list[DismissalRequestLicenseCompliancePropDataItems]] = Field(
295+
default=UNSET,
296+
description="The data related to the License compliance alerts that have closure requests.",
297+
)
298+
299+
300+
class DismissalRequestLicenseCompliancePropDataItems(GitHubModel):
301+
"""DismissalRequestLicenseCompliancePropDataItems"""
302+
303+
alert_number: Missing[str] = Field(
304+
default=UNSET, description="The number of the alert to be closed"
305+
)
306+
307+
268308
class ExemptionRequestSecretScanning(GitHubModel):
269309
"""Secret scanning push protection exemption request data
270310
@@ -312,6 +352,7 @@ class ExemptionRequestSecretScanningPropDataItemsPropLocationsItems(GitHubModel)
312352
model_rebuild(DismissalRequestSecretScanningMetadata)
313353
model_rebuild(DismissalRequestCodeScanningMetadata)
314354
model_rebuild(DismissalRequestDependabotMetadata)
355+
model_rebuild(DismissalRequestLicenseComplianceMetadata)
315356
model_rebuild(ExemptionRequestPushRulesetBypass)
316357
model_rebuild(ExemptionRequestPushRulesetBypassPropDataItems)
317358
model_rebuild(DismissalRequestSecretScanning)
@@ -320,6 +361,8 @@ class ExemptionRequestSecretScanningPropDataItemsPropLocationsItems(GitHubModel)
320361
model_rebuild(DismissalRequestCodeScanningPropDataItems)
321362
model_rebuild(DismissalRequestDependabot)
322363
model_rebuild(DismissalRequestDependabotPropDataItems)
364+
model_rebuild(DismissalRequestLicenseCompliance)
365+
model_rebuild(DismissalRequestLicenseCompliancePropDataItems)
323366
model_rebuild(ExemptionRequestSecretScanning)
324367
model_rebuild(ExemptionRequestSecretScanningPropDataItems)
325368
model_rebuild(ExemptionRequestSecretScanningPropDataItemsPropLocationsItems)
@@ -331,6 +374,9 @@ class ExemptionRequestSecretScanningPropDataItemsPropLocationsItems(GitHubModel)
331374
"DismissalRequestDependabot",
332375
"DismissalRequestDependabotMetadata",
333376
"DismissalRequestDependabotPropDataItems",
377+
"DismissalRequestLicenseCompliance",
378+
"DismissalRequestLicenseComplianceMetadata",
379+
"DismissalRequestLicenseCompliancePropDataItems",
334380
"DismissalRequestSecretScanning",
335381
"DismissalRequestSecretScanningMetadata",
336382
"DismissalRequestSecretScanningPropDataItems",

githubkit/versions/ghec_v2022_11_28/models/group_0609.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,15 @@ class SecretScanningAlertWebhook(GitHubModel):
104104
description="Whether the detected secret was found in multiple repositories in the same organization or business.",
105105
)
106106
assigned_to: Missing[Union[None, SimpleUser]] = Field(default=UNSET)
107+
closure_request_comment: Missing[Union[str, None]] = Field(
108+
default=UNSET,
109+
description="An optional comment from the closure request author.",
110+
)
111+
closure_request_reviewer_comment: Missing[Union[str, None]] = Field(
112+
default=UNSET,
113+
description="An optional comment from the closure request reviewer.",
114+
)
115+
closure_request_reviewer: Missing[Union[None, SimpleUser]] = Field(default=UNSET)
107116

108117

109118
model_rebuild(SecretScanningAlertWebhook)

0 commit comments

Comments
 (0)