Skip to content

Commit c9b347b

Browse files
authored
👽 re-generate openapi models and apis
1 parent 6e6d674 commit c9b347b

File tree

2,597 files changed

+129080
-125934
lines changed

Some content is hidden

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

2,597 files changed

+129080
-125934
lines changed

githubkit/versions/ghec_v2022_11_28/models/__init__.py

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

githubkit/versions/ghec_v2022_11_28/models/group_0018.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,13 @@ class Installation(GitHubModel):
3232
id: int = Field(description="The ID of the installation.")
3333
account: Union[SimpleUser, Enterprise, None] = Field()
3434
repository_selection: Literal["all", "selected"] = Field(
35-
description="Describe whether all repositories have been selected or there's a selection involved"
35+
description="Describe whether all repositories have been selected or there's a selection involved. For enterprise installations this is `selected`."
3636
)
3737
access_tokens_url: str = Field()
3838
repositories_url: str = Field()
3939
html_url: str = Field()
4040
app_id: int = Field()
41+
client_id: Missing[str] = Field(default=UNSET)
4142
target_id: int = Field(
4243
description="The ID of the user or organization this token is being scoped to."
4344
)

githubkit/versions/ghec_v2022_11_28/models/group_0021.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
class InstallationToken(GitHubModel):
2525
"""Installation Token
2626
27-
Authentication token for a GitHub App installed on a user or org.
27+
Authentication token for a GitHub App installed on a user, org, or enterprise.
2828
"""
2929

3030
token: str = Field()

githubkit/versions/ghec_v2022_11_28/models/group_0046.py

Lines changed: 10 additions & 121 deletions
Original file line numberDiff line numberDiff line change
@@ -11,133 +11,22 @@
1111

1212
from pydantic import Field
1313

14-
from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild
14+
from githubkit.compat import GitHubModel, model_rebuild
1515
from githubkit.typing import Missing
1616
from githubkit.utils import UNSET
1717

1818

19-
class AuditLogEvent(GitHubModel):
20-
"""AuditLogEvent"""
19+
class InstallableOrganization(GitHubModel):
20+
"""Installable Organization
2121
22-
timestamp: Missing[int] = Field(
23-
default=UNSET,
24-
alias="@timestamp",
25-
description="The time the audit log event occurred, given as a [Unix timestamp](http://en.wikipedia.org/wiki/Unix_time).",
26-
)
27-
action: Missing[str] = Field(
28-
default=UNSET,
29-
description="The name of the action that was performed, for example `user.login` or `repo.create`.",
30-
)
31-
active: Missing[bool] = Field(default=UNSET)
32-
active_was: Missing[bool] = Field(default=UNSET)
33-
actor: Missing[str] = Field(
34-
default=UNSET, description="The actor who performed the action."
35-
)
36-
actor_id: Missing[int] = Field(
37-
default=UNSET, description="The id of the actor who performed the action."
38-
)
39-
actor_location: Missing[AuditLogEventPropActorLocation] = Field(default=UNSET)
40-
data: Missing[AuditLogEventPropData] = Field(default=UNSET)
41-
org_id: Missing[int] = Field(default=UNSET)
42-
user_id: Missing[int] = Field(default=UNSET)
43-
business_id: Missing[int] = Field(default=UNSET)
44-
blocked_user: Missing[str] = Field(
45-
default=UNSET, description="The username of the account being blocked."
46-
)
47-
business: Missing[str] = Field(default=UNSET)
48-
config: Missing[list[AuditLogEventPropConfigItems]] = Field(default=UNSET)
49-
config_was: Missing[list[AuditLogEventPropConfigWasItems]] = Field(default=UNSET)
50-
content_type: Missing[str] = Field(default=UNSET)
51-
operation_type: Missing[str] = Field(default=UNSET)
52-
created_at: Missing[int] = Field(
53-
default=UNSET,
54-
description="The time the audit log event was recorded, given as a [Unix timestamp](http://en.wikipedia.org/wiki/Unix_time).",
55-
)
56-
deploy_key_fingerprint: Missing[str] = Field(default=UNSET)
57-
document_id: Missing[str] = Field(
58-
default=UNSET,
59-
alias="_document_id",
60-
description="A unique identifier for an audit event.",
61-
)
62-
emoji: Missing[str] = Field(default=UNSET)
63-
events: Missing[list[AuditLogEventPropEventsItems]] = Field(default=UNSET)
64-
events_were: Missing[list[AuditLogEventPropEventsWereItems]] = Field(default=UNSET)
65-
explanation: Missing[str] = Field(default=UNSET)
66-
fingerprint: Missing[str] = Field(default=UNSET)
67-
hook_id: Missing[int] = Field(default=UNSET)
68-
limited_availability: Missing[bool] = Field(default=UNSET)
69-
message: Missing[str] = Field(default=UNSET)
70-
name: Missing[str] = Field(default=UNSET)
71-
old_user: Missing[str] = Field(default=UNSET)
72-
openssh_public_key: Missing[str] = Field(default=UNSET)
73-
org: Missing[str] = Field(default=UNSET)
74-
previous_visibility: Missing[str] = Field(default=UNSET)
75-
read_only: Missing[bool] = Field(default=UNSET)
76-
repo: Missing[str] = Field(default=UNSET, description="The name of the repository.")
77-
repository: Missing[str] = Field(
78-
default=UNSET, description="The name of the repository."
79-
)
80-
repository_public: Missing[bool] = Field(default=UNSET)
81-
target_login: Missing[str] = Field(default=UNSET)
82-
team: Missing[str] = Field(default=UNSET)
83-
transport_protocol: Missing[int] = Field(
84-
default=UNSET,
85-
description="The type of protocol (for example, HTTP or SSH) used to transfer Git data.",
86-
)
87-
transport_protocol_name: Missing[str] = Field(
88-
default=UNSET,
89-
description="A human readable name for the protocol (for example, HTTP or SSH) used to transfer Git data.",
90-
)
91-
user: Missing[str] = Field(
92-
default=UNSET,
93-
description="The user that was affected by the action performed (if available).",
94-
)
95-
visibility: Missing[str] = Field(
96-
default=UNSET,
97-
description="The repository visibility, for example `public` or `private`.",
98-
)
22+
A GitHub organization on which a GitHub App can be installed.
23+
"""
9924

25+
id: int = Field()
26+
login: str = Field()
27+
accessible_repositories_url: Missing[str] = Field(default=UNSET)
10028

101-
class AuditLogEventPropActorLocation(GitHubModel):
102-
"""AuditLogEventPropActorLocation"""
10329

104-
country_name: Missing[str] = Field(default=UNSET)
30+
model_rebuild(InstallableOrganization)
10531

106-
107-
class AuditLogEventPropData(ExtraGitHubModel):
108-
"""AuditLogEventPropData"""
109-
110-
111-
class AuditLogEventPropConfigItems(GitHubModel):
112-
"""AuditLogEventPropConfigItems"""
113-
114-
115-
class AuditLogEventPropConfigWasItems(GitHubModel):
116-
"""AuditLogEventPropConfigWasItems"""
117-
118-
119-
class AuditLogEventPropEventsItems(GitHubModel):
120-
"""AuditLogEventPropEventsItems"""
121-
122-
123-
class AuditLogEventPropEventsWereItems(GitHubModel):
124-
"""AuditLogEventPropEventsWereItems"""
125-
126-
127-
model_rebuild(AuditLogEvent)
128-
model_rebuild(AuditLogEventPropActorLocation)
129-
model_rebuild(AuditLogEventPropData)
130-
model_rebuild(AuditLogEventPropConfigItems)
131-
model_rebuild(AuditLogEventPropConfigWasItems)
132-
model_rebuild(AuditLogEventPropEventsItems)
133-
model_rebuild(AuditLogEventPropEventsWereItems)
134-
135-
__all__ = (
136-
"AuditLogEvent",
137-
"AuditLogEventPropActorLocation",
138-
"AuditLogEventPropConfigItems",
139-
"AuditLogEventPropConfigWasItems",
140-
"AuditLogEventPropData",
141-
"AuditLogEventPropEventsItems",
142-
"AuditLogEventPropEventsWereItems",
143-
)
32+
__all__ = ("InstallableOrganization",)

githubkit/versions/ghec_v2022_11_28/models/group_0047.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,17 @@
1414
from githubkit.compat import GitHubModel, model_rebuild
1515

1616

17-
class AuditLogStreamKey(GitHubModel):
18-
"""stream-key
17+
class AccessibleRepository(GitHubModel):
18+
"""Accessible Repository
1919
20-
Audit Log Streaming Public Key
20+
A repository that may be made accessible to a GitHub App.
2121
"""
2222

23-
key_id: str = Field()
24-
key: str = Field()
23+
id: int = Field(description="Unique identifier of the repository")
24+
name: str = Field(description="The name of the repository.")
25+
full_name: str = Field()
2526

2627

27-
model_rebuild(AuditLogStreamKey)
28+
model_rebuild(AccessibleRepository)
2829

29-
__all__ = ("AuditLogStreamKey",)
30+
__all__ = ("AccessibleRepository",)

githubkit/versions/ghec_v2022_11_28/models/group_0048.py

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,39 @@
1010
from __future__ import annotations
1111

1212
from datetime import datetime
13-
from typing import Union
13+
from typing import Literal
1414

1515
from pydantic import Field
1616

1717
from githubkit.compat import GitHubModel, model_rebuild
1818
from githubkit.typing import Missing
1919
from githubkit.utils import UNSET
2020

21+
from .group_0017 import AppPermissions
2122

22-
class GetAuditLogStreamConfigsItems(GitHubModel):
23-
"""GetAuditLogStreamConfigsItems"""
2423

25-
id: Missing[int] = Field(default=UNSET)
26-
stream_type: Missing[str] = Field(default=UNSET)
27-
stream_details: Missing[str] = Field(default=UNSET)
28-
enabled: Missing[bool] = Field(default=UNSET)
29-
created_at: Missing[datetime] = Field(default=UNSET)
30-
updated_at: Missing[datetime] = Field(default=UNSET)
31-
paused_at: Missing[Union[datetime, None]] = Field(default=UNSET)
24+
class EnterpriseOrganizationInstallation(GitHubModel):
25+
"""Enterprise Organization Installation
3226
27+
A GitHub App Installation on an enterprise-owned organization
28+
"""
3329

34-
model_rebuild(GetAuditLogStreamConfigsItems)
30+
id: int = Field(description="The ID of the installation.")
31+
app_slug: Missing[str] = Field(default=UNSET)
32+
client_id: str = Field()
33+
repository_selection: Literal["all", "selected"] = Field(
34+
description="Describe whether all repositories have been selected or there's a selection involved"
35+
)
36+
repositories_url: str = Field()
37+
permissions: AppPermissions = Field(
38+
title="App Permissions",
39+
description="The permissions granted to the user access token.",
40+
)
41+
events: Missing[list[str]] = Field(default=UNSET)
42+
created_at: datetime = Field()
43+
updated_at: datetime = Field()
3544

36-
__all__ = ("GetAuditLogStreamConfigsItems",)
45+
46+
model_rebuild(EnterpriseOrganizationInstallation)
47+
48+
__all__ = ("EnterpriseOrganizationInstallation",)

0 commit comments

Comments
 (0)