Skip to content

Commit bb30745

Browse files
authored
👽 re-generate openapi models and apis
1 parent 7e6f445 commit bb30745

File tree

1,417 files changed

+29411
-29495
lines changed

Some content is hidden

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

1,417 files changed

+29411
-29495
lines changed

githubkit/versions/ghec_v2022_11_28/models/__init__.py

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

githubkit/versions/ghec_v2022_11_28/models/group_0078.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,9 @@ class CodeSecurityConfigurationPropSecretScanningDelegatedBypassOptionsPropRevie
229229
reviewer_type: Literal["TEAM", "ROLE"] = Field(
230230
description="The type of the bypass reviewer"
231231
)
232+
mode: Missing[Literal["ALWAYS", "EXEMPT"]] = Field(
233+
default=UNSET, description="The bypass mode for the reviewer"
234+
)
232235
security_configuration_id: Missing[int] = Field(
233236
default=UNSET,
234237
description="The ID of the security configuration associated with this bypass reviewer",

githubkit/versions/ghec_v2022_11_28/models/group_0098.py

Lines changed: 119 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -18,54 +18,146 @@
1818
from githubkit.typing import Missing
1919
from githubkit.utils import UNSET
2020

21-
from .group_0008 import Enterprise
21+
from .group_0069 import BypassResponse
2222

2323

24-
class EnterpriseRole(GitHubModel):
25-
"""Enterprise Role
24+
class SecretScanningDismissalRequest(GitHubModel):
25+
"""Secret scanning alert dismissal request
2626
27-
Enterprise custom roles
27+
A dismissal request made by a user asking to close a secret scanning alert in
28+
this repository.
2829
"""
2930

30-
id: int = Field(description="The unique identifier of the role.")
31-
name: str = Field(description="The name of the role.")
32-
description: Missing[Union[str, None]] = Field(
31+
id: Missing[int] = Field(
32+
default=UNSET, description="The unique identifier of the dismissal request."
33+
)
34+
number: Missing[int] = Field(
35+
default=UNSET,
36+
description="The number uniquely identifying the dismissal request within its repository.",
37+
)
38+
repository: Missing[SecretScanningDismissalRequestPropRepository] = Field(
39+
default=UNSET, description="The repository the dismissal request is for."
40+
)
41+
organization: Missing[SecretScanningDismissalRequestPropOrganization] = Field(
42+
default=UNSET,
43+
description="The organization associated with the repository the dismissal request is for.",
44+
)
45+
requester: Missing[SecretScanningDismissalRequestPropRequester] = Field(
46+
default=UNSET, description="The user who requested the dismissal."
47+
)
48+
request_type: Missing[str] = Field(
49+
default=UNSET, description="The type of request."
50+
)
51+
data: Missing[Union[list[SecretScanningDismissalRequestPropDataItems], None]] = (
52+
Field(
53+
default=UNSET,
54+
description="Data describing the secret alert that is being requested to be dismissed.",
55+
)
56+
)
57+
resource_identifier: Missing[str] = Field(
3358
default=UNSET,
34-
description="A short description about who this role is for or what permissions it grants.",
59+
description="The number of the secret scanning alert that was detected.",
3560
)
36-
source: Missing[Union[None, Literal["Enterprise", "Predefined"]]] = Field(
61+
status: Missing[
62+
Literal["pending", "denied", "approved", "cancelled", "expired"]
63+
] = Field(default=UNSET, description="The status of the dismissal request.")
64+
requester_comment: Missing[Union[str, None]] = Field(
65+
default=UNSET,
66+
description="The comment the requester provided when creating the dismissal request.",
67+
)
68+
expires_at: Missing[_dt.datetime] = Field(
69+
default=UNSET,
70+
description="The date and time the dismissal request will expire.",
71+
)
72+
created_at: Missing[_dt.datetime] = Field(
73+
default=UNSET,
74+
description="The date and time the dismissal request was created.",
75+
)
76+
responses: Missing[Union[list[BypassResponse], None]] = Field(
77+
default=UNSET, description="The responses to the dismissal request."
78+
)
79+
url: Missing[str] = Field(default=UNSET)
80+
html_url: Missing[str] = Field(
81+
default=UNSET, description="The URL to view the dismissal request in a browser."
82+
)
83+
84+
85+
class SecretScanningDismissalRequestPropRepository(GitHubModel):
86+
"""SecretScanningDismissalRequestPropRepository
87+
88+
The repository the dismissal request is for.
89+
"""
90+
91+
id: Missing[int] = Field(
3792
default=UNSET,
38-
description='Source answers the question, "where did this role come from?"',
93+
description="The ID of the repository the dismissal request is for.",
3994
)
40-
permissions: list[str] = Field(
41-
description="A list of permissions included in this role."
95+
name: Missing[str] = Field(
96+
default=UNSET,
97+
description="The name of the repository the dismissal request is for.",
4298
)
43-
enterprise: Union[None, Enterprise] = Field()
44-
created_at: _dt.datetime = Field(
45-
description="The date and time the role was created."
99+
full_name: Missing[str] = Field(
100+
default=UNSET,
101+
description="The full name of the repository the dismissal request is for.",
46102
)
47-
updated_at: _dt.datetime = Field(
48-
description="The date and time the role was last updated."
103+
104+
105+
class SecretScanningDismissalRequestPropOrganization(GitHubModel):
106+
"""SecretScanningDismissalRequestPropOrganization
107+
108+
The organization associated with the repository the dismissal request is for.
109+
"""
110+
111+
id: Missing[int] = Field(default=UNSET, description="The ID of the organization.")
112+
name: Missing[str] = Field(
113+
default=UNSET, description="The name of the organization."
49114
)
50115

51116

52-
class EnterprisesEnterpriseEnterpriseRolesGetResponse200(GitHubModel):
53-
"""EnterprisesEnterpriseEnterpriseRolesGetResponse200"""
117+
class SecretScanningDismissalRequestPropRequester(GitHubModel):
118+
"""SecretScanningDismissalRequestPropRequester
54119
55-
total_count: Missing[int] = Field(
120+
The user who requested the dismissal.
121+
"""
122+
123+
actor_id: Missing[int] = Field(
56124
default=UNSET,
57-
description="The total number of enterprise roles available to the enterprise.",
125+
description="The ID of the GitHub user who requested the dismissal.",
58126
)
59-
roles: Missing[list[EnterpriseRole]] = Field(
127+
actor_name: Missing[str] = Field(
60128
default=UNSET,
61-
description="The list of enterprise roles available to the enterprise.",
129+
description="The name of the GitHub user who requested the dismissal.",
130+
)
131+
132+
133+
class SecretScanningDismissalRequestPropDataItems(GitHubModel):
134+
"""SecretScanningDismissalRequestPropDataItems"""
135+
136+
secret_type: Missing[str] = Field(
137+
default=UNSET, description="The type of secret that secret scanning detected."
138+
)
139+
alert_number: Missing[str] = Field(
140+
default=UNSET,
141+
description="The number of the secret scanning alert that was detected.",
142+
)
143+
reason: Missing[Literal["fixed_later", "false_positive", "tests", "revoked"]] = (
144+
Field(
145+
default=UNSET,
146+
description="The reason the user provided for requesting the dismissal.",
147+
)
62148
)
63149

64150

65-
model_rebuild(EnterpriseRole)
66-
model_rebuild(EnterprisesEnterpriseEnterpriseRolesGetResponse200)
151+
model_rebuild(SecretScanningDismissalRequest)
152+
model_rebuild(SecretScanningDismissalRequestPropRepository)
153+
model_rebuild(SecretScanningDismissalRequestPropOrganization)
154+
model_rebuild(SecretScanningDismissalRequestPropRequester)
155+
model_rebuild(SecretScanningDismissalRequestPropDataItems)
67156

68157
__all__ = (
69-
"EnterpriseRole",
70-
"EnterprisesEnterpriseEnterpriseRolesGetResponse200",
158+
"SecretScanningDismissalRequest",
159+
"SecretScanningDismissalRequestPropDataItems",
160+
"SecretScanningDismissalRequestPropOrganization",
161+
"SecretScanningDismissalRequestPropRepository",
162+
"SecretScanningDismissalRequestPropRequester",
71163
)

githubkit/versions/ghec_v2022_11_28/models/group_0099.py

Lines changed: 40 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
from __future__ import annotations
1111

12+
import datetime as _dt
1213
from typing import Literal, Union
1314

1415
from pydantic import Field
@@ -17,47 +18,54 @@
1718
from githubkit.typing import Missing
1819
from githubkit.utils import UNSET
1920

20-
from .group_0086 import EnterpriseTeam
21+
from .group_0008 import Enterprise
2122

2223

23-
class EnterpriseUserRoleAssignment(GitHubModel):
24-
"""An Enterprise Role Assignment for a User
24+
class EnterpriseRole(GitHubModel):
25+
"""Enterprise Role
2526
26-
The Relationship a User has with a role in an enterprise context.
27+
Enterprise custom roles
2728
"""
2829

29-
name: Missing[Union[str, None]] = Field(default=UNSET)
30-
email: Missing[Union[str, None]] = Field(default=UNSET)
31-
login: str = Field()
32-
id: int = Field()
33-
node_id: str = Field()
34-
avatar_url: str = Field()
35-
gravatar_id: Union[str, None] = Field()
36-
url: str = Field()
37-
html_url: str = Field()
38-
followers_url: str = Field()
39-
following_url: str = Field()
40-
gists_url: str = Field()
41-
starred_url: str = Field()
42-
subscriptions_url: str = Field()
43-
organizations_url: str = Field()
44-
repos_url: str = Field()
45-
events_url: str = Field()
46-
received_events_url: str = Field()
47-
type: str = Field()
48-
site_admin: bool = Field()
49-
starred_at: Missing[str] = Field(default=UNSET)
50-
user_view_type: Missing[str] = Field(default=UNSET)
51-
assignment: Missing[Literal["direct", "indirect", "mixed"]] = Field(
30+
id: int = Field(description="The unique identifier of the role.")
31+
name: str = Field(description="The name of the role.")
32+
description: Missing[Union[str, None]] = Field(
5233
default=UNSET,
53-
description="Determines if the user has a direct, indirect, or mixed relationship to a role",
34+
description="A short description about who this role is for or what permissions it grants.",
5435
)
55-
inherited_from: Missing[list[EnterpriseTeam]] = Field(
36+
source: Missing[Union[None, Literal["Enterprise", "Predefined"]]] = Field(
5637
default=UNSET,
57-
description="Enterprise Team the user has gotten the role through",
38+
description='Source answers the question, "where did this role come from?"',
39+
)
40+
permissions: list[str] = Field(
41+
description="A list of permissions included in this role."
42+
)
43+
enterprise: Union[None, Enterprise] = Field()
44+
created_at: _dt.datetime = Field(
45+
description="The date and time the role was created."
46+
)
47+
updated_at: _dt.datetime = Field(
48+
description="The date and time the role was last updated."
49+
)
50+
51+
52+
class EnterprisesEnterpriseEnterpriseRolesGetResponse200(GitHubModel):
53+
"""EnterprisesEnterpriseEnterpriseRolesGetResponse200"""
54+
55+
total_count: Missing[int] = Field(
56+
default=UNSET,
57+
description="The total number of enterprise roles available to the enterprise.",
58+
)
59+
roles: Missing[list[EnterpriseRole]] = Field(
60+
default=UNSET,
61+
description="The list of enterprise roles available to the enterprise.",
5862
)
5963

6064

61-
model_rebuild(EnterpriseUserRoleAssignment)
65+
model_rebuild(EnterpriseRole)
66+
model_rebuild(EnterprisesEnterpriseEnterpriseRolesGetResponse200)
6267

63-
__all__ = ("EnterpriseUserRoleAssignment",)
68+
__all__ = (
69+
"EnterpriseRole",
70+
"EnterprisesEnterpriseEnterpriseRolesGetResponse200",
71+
)

githubkit/versions/ghec_v2022_11_28/models/group_0100.py

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
from __future__ import annotations
1111

12-
from typing import Literal
12+
from typing import Literal, Union
1313

1414
from pydantic import Field
1515

@@ -20,9 +20,34 @@
2020
from .group_0086 import EnterpriseTeam
2121

2222

23-
class EnterpriseUserRoleAssignmentAllof1(GitHubModel):
24-
"""EnterpriseUserRoleAssignmentAllof1"""
25-
23+
class EnterpriseUserRoleAssignment(GitHubModel):
24+
"""An Enterprise Role Assignment for a User
25+
26+
The Relationship a User has with a role in an enterprise context.
27+
"""
28+
29+
name: Missing[Union[str, None]] = Field(default=UNSET)
30+
email: Missing[Union[str, None]] = Field(default=UNSET)
31+
login: str = Field()
32+
id: int = Field()
33+
node_id: str = Field()
34+
avatar_url: str = Field()
35+
gravatar_id: Union[str, None] = Field()
36+
url: str = Field()
37+
html_url: str = Field()
38+
followers_url: str = Field()
39+
following_url: str = Field()
40+
gists_url: str = Field()
41+
starred_url: str = Field()
42+
subscriptions_url: str = Field()
43+
organizations_url: str = Field()
44+
repos_url: str = Field()
45+
events_url: str = Field()
46+
received_events_url: str = Field()
47+
type: str = Field()
48+
site_admin: bool = Field()
49+
starred_at: Missing[str] = Field(default=UNSET)
50+
user_view_type: Missing[str] = Field(default=UNSET)
2651
assignment: Missing[Literal["direct", "indirect", "mixed"]] = Field(
2752
default=UNSET,
2853
description="Determines if the user has a direct, indirect, or mixed relationship to a role",
@@ -33,6 +58,6 @@ class EnterpriseUserRoleAssignmentAllof1(GitHubModel):
3358
)
3459

3560

36-
model_rebuild(EnterpriseUserRoleAssignmentAllof1)
61+
model_rebuild(EnterpriseUserRoleAssignment)
3762

38-
__all__ = ("EnterpriseUserRoleAssignmentAllof1",)
63+
__all__ = ("EnterpriseUserRoleAssignment",)

githubkit/versions/ghec_v2022_11_28/models/group_0101.py

Lines changed: 13 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -9,48 +9,30 @@
99

1010
from __future__ import annotations
1111

12+
from typing import Literal
13+
1214
from pydantic import Field
1315

1416
from githubkit.compat import GitHubModel, model_rebuild
1517
from githubkit.typing import Missing
1618
from githubkit.utils import UNSET
1719

20+
from .group_0086 import EnterpriseTeam
1821

19-
class GetLicenseSyncStatus(GitHubModel):
20-
"""License Sync Status
2122

22-
Information about the status of a license sync job for an enterprise.
23-
"""
23+
class EnterpriseUserRoleAssignmentAllof1(GitHubModel):
24+
"""EnterpriseUserRoleAssignmentAllof1"""
2425

25-
server_instances: Missing[list[GetLicenseSyncStatusPropServerInstancesItems]] = (
26-
Field(default=UNSET)
26+
assignment: Missing[Literal["direct", "indirect", "mixed"]] = Field(
27+
default=UNSET,
28+
description="Determines if the user has a direct, indirect, or mixed relationship to a role",
2729
)
28-
29-
30-
class GetLicenseSyncStatusPropServerInstancesItems(GitHubModel):
31-
"""GetLicenseSyncStatusPropServerInstancesItems"""
32-
33-
server_id: Missing[str] = Field(default=UNSET)
34-
hostname: Missing[str] = Field(default=UNSET)
35-
last_sync: Missing[GetLicenseSyncStatusPropServerInstancesItemsPropLastSync] = (
36-
Field(default=UNSET)
30+
inherited_from: Missing[list[EnterpriseTeam]] = Field(
31+
default=UNSET,
32+
description="Enterprise Team the user has gotten the role through",
3733
)
3834

3935

40-
class GetLicenseSyncStatusPropServerInstancesItemsPropLastSync(GitHubModel):
41-
"""GetLicenseSyncStatusPropServerInstancesItemsPropLastSync"""
42-
43-
date: Missing[str] = Field(default=UNSET)
44-
status: Missing[str] = Field(default=UNSET)
45-
error: Missing[str] = Field(default=UNSET)
46-
47-
48-
model_rebuild(GetLicenseSyncStatus)
49-
model_rebuild(GetLicenseSyncStatusPropServerInstancesItems)
50-
model_rebuild(GetLicenseSyncStatusPropServerInstancesItemsPropLastSync)
36+
model_rebuild(EnterpriseUserRoleAssignmentAllof1)
5137

52-
__all__ = (
53-
"GetLicenseSyncStatus",
54-
"GetLicenseSyncStatusPropServerInstancesItems",
55-
"GetLicenseSyncStatusPropServerInstancesItemsPropLastSync",
56-
)
38+
__all__ = ("EnterpriseUserRoleAssignmentAllof1",)

0 commit comments

Comments
 (0)