Skip to content

Commit f18426a

Browse files
authored
👽 re-generate openapi models
1 parent 6a05870 commit f18426a

File tree

3,245 files changed

+183093
-181786
lines changed

Some content is hidden

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

3,245 files changed

+183093
-181786
lines changed

githubkit/rest/__init__.py

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,12 @@
163163
from githubkit.versions.v2022_11_28.models import (
164164
BillingUsageReportPropUsageItemsItems as BillingUsageReportPropUsageItemsItems,
165165
)
166+
from githubkit.versions.v2022_11_28.models import (
167+
BillingUsageReportUser as BillingUsageReportUser,
168+
)
169+
from githubkit.versions.v2022_11_28.models import (
170+
BillingUsageReportUserPropUsageItemsItems as BillingUsageReportUserPropUsageItemsItems,
171+
)
166172
from githubkit.versions.v2022_11_28.models import Blob as Blob
167173
from githubkit.versions.v2022_11_28.models import (
168174
BranchProtection as BranchProtection,
@@ -562,6 +568,9 @@
562568
from githubkit.versions.v2022_11_28.models import (
563569
CopilotUsageMetricsDay as CopilotUsageMetricsDay,
564570
)
571+
from githubkit.versions.v2022_11_28.models import (
572+
CredentialsRevokePostBody as CredentialsRevokePostBody,
573+
)
565574
from githubkit.versions.v2022_11_28.models import (
566575
CustomDeploymentRuleApp as CustomDeploymentRuleApp,
567576
)
@@ -10477,6 +10486,8 @@
1047710486
"Hovercard",
1047810487
"HovercardPropContextsItems",
1047910488
"KeySimple",
10489+
"BillingUsageReportUser",
10490+
"BillingUsageReportUserPropUsageItemsItems",
1048010491
"EnterpriseWebhooks",
1048110492
"SimpleInstallation",
1048210493
"OrganizationSimpleWebhooks",
@@ -11156,6 +11167,11 @@
1115611167
"WebhookIssuesMilestonedPropIssuePropUser",
1115711168
"WebhookIssuesOpened",
1115811169
"WebhookIssuesOpenedPropChanges",
11170+
"WebhookIssuesOpenedPropChangesPropOldRepository",
11171+
"WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties",
11172+
"WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense",
11173+
"WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner",
11174+
"WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions",
1115911175
"WebhookIssuesOpenedPropChangesPropOldIssue",
1116011176
"WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee",
1116111177
"WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems",
@@ -11169,11 +11185,6 @@
1116911185
"WebhookIssuesOpenedPropChangesPropOldIssuePropReactions",
1117011186
"WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary",
1117111187
"WebhookIssuesOpenedPropChangesPropOldIssuePropUser",
11172-
"WebhookIssuesOpenedPropChangesPropOldRepository",
11173-
"WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties",
11174-
"WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense",
11175-
"WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner",
11176-
"WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions",
1117711188
"WebhookIssuesOpenedPropIssue",
1117811189
"WebhookIssuesOpenedPropIssuePropAssignee",
1117911190
"WebhookIssuesOpenedPropIssuePropAssigneesItems",
@@ -12640,6 +12651,7 @@
1264012651
"ApplicationsClientIdTokenDeleteBody",
1264112652
"ApplicationsClientIdTokenPatchBody",
1264212653
"ApplicationsClientIdTokenScopedPostBody",
12654+
"CredentialsRevokePostBody",
1264312655
"EmojisGetResponse200",
1264412656
"EnterprisesEnterpriseCodeSecurityConfigurationsPostBody",
1264512657
"EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions",

githubkit/versions/ghec_v2022_11_28/models/__init__.py

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

githubkit/versions/ghec_v2022_11_28/models/group_0186.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,12 @@ class SecretScanningDismissalRequestPropDataItems(GitHubModel):
140140
default=UNSET,
141141
description="The number of the secret scanning alert that was detected.",
142142
)
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+
)
148+
)
143149

144150

145151
model_rebuild(SecretScanningDismissalRequest)

githubkit/versions/ghec_v2022_11_28/models/group_0473.py

Lines changed: 35 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -9,43 +9,52 @@
99

1010
from __future__ import annotations
1111

12-
from datetime import datetime
13-
from typing import Union
14-
1512
from pydantic import Field
1613

1714
from githubkit.compat import GitHubModel, model_rebuild
1815
from githubkit.typing import Missing
1916
from githubkit.utils import UNSET
2017

2118

22-
class EnterpriseWebhooks(GitHubModel):
23-
"""Enterprise
19+
class BillingUsageReportUser(GitHubModel):
20+
"""BillingUsageReportUser"""
21+
22+
usage_items: Missing[list[BillingUsageReportUserPropUsageItemsItems]] = Field(
23+
default=UNSET, alias="usageItems"
24+
)
25+
2426

25-
An enterprise on GitHub. Webhook payloads contain the `enterprise` property when
26-
the webhook is configured
27-
on an enterprise account or an organization that's part of an enterprise
28-
account. For more information,
29-
see "[About enterprise accounts](https://docs.github.com/enterprise-
30-
cloud@latest//admin/overview/about-enterprise-accounts)."
31-
"""
27+
class BillingUsageReportUserPropUsageItemsItems(GitHubModel):
28+
"""BillingUsageReportUserPropUsageItemsItems"""
3229

33-
description: Missing[Union[str, None]] = Field(
34-
default=UNSET, description="A short description of the enterprise."
30+
date: str = Field(description="Date of the usage line item.")
31+
product: str = Field(description="Product name.")
32+
sku: str = Field(description="SKU name.")
33+
quantity: int = Field(description="Quantity of the usage line item.")
34+
unit_type: str = Field(
35+
alias="unitType", description="Unit type of the usage line item."
36+
)
37+
price_per_unit: float = Field(
38+
alias="pricePerUnit", description="Price per unit of the usage line item."
39+
)
40+
gross_amount: float = Field(
41+
alias="grossAmount", description="Gross amount of the usage line item."
42+
)
43+
discount_amount: float = Field(
44+
alias="discountAmount", description="Discount amount of the usage line item."
45+
)
46+
net_amount: float = Field(
47+
alias="netAmount", description="Net amount of the usage line item."
3548
)
36-
html_url: str = Field()
37-
website_url: Missing[Union[str, None]] = Field(
38-
default=UNSET, description="The enterprise's website URL."
49+
repository_name: Missing[str] = Field(
50+
default=UNSET, alias="repositoryName", description="Name of the repository."
3951
)
40-
id: int = Field(description="Unique identifier of the enterprise")
41-
node_id: str = Field()
42-
name: str = Field(description="The name of the enterprise.")
43-
slug: str = Field(description="The slug url identifier for the enterprise.")
44-
created_at: Union[datetime, None] = Field()
45-
updated_at: Union[datetime, None] = Field()
46-
avatar_url: str = Field()
4752

4853

49-
model_rebuild(EnterpriseWebhooks)
54+
model_rebuild(BillingUsageReportUser)
55+
model_rebuild(BillingUsageReportUserPropUsageItemsItems)
5056

51-
__all__ = ("EnterpriseWebhooks",)
57+
__all__ = (
58+
"BillingUsageReportUser",
59+
"BillingUsageReportUserPropUsageItemsItems",
60+
)

githubkit/versions/ghec_v2022_11_28/models/group_0474.py

Lines changed: 32 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,43 @@
99

1010
from __future__ import annotations
1111

12+
from datetime import datetime
13+
from typing import Union
14+
1215
from pydantic import Field
1316

1417
from githubkit.compat import GitHubModel, model_rebuild
18+
from githubkit.typing import Missing
19+
from githubkit.utils import UNSET
1520

1621

17-
class SimpleInstallation(GitHubModel):
18-
"""Simple Installation
22+
class EnterpriseWebhooks(GitHubModel):
23+
"""Enterprise
1924
20-
The GitHub App installation. Webhook payloads contain the `installation`
21-
property when the event is configured
22-
for and sent to a GitHub App. For more information,
23-
see "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-
24-
cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-
25-
with-github-apps)."
25+
An enterprise on GitHub. Webhook payloads contain the `enterprise` property when
26+
the webhook is configured
27+
on an enterprise account or an organization that's part of an enterprise
28+
account. For more information,
29+
see "[About enterprise accounts](https://docs.github.com/enterprise-
30+
cloud@latest//admin/overview/about-enterprise-accounts)."
2631
"""
2732

28-
id: int = Field(description="The ID of the installation.")
29-
node_id: str = Field(description="The global node ID of the installation.")
30-
31-
32-
model_rebuild(SimpleInstallation)
33-
34-
__all__ = ("SimpleInstallation",)
33+
description: Missing[Union[str, None]] = Field(
34+
default=UNSET, description="A short description of the enterprise."
35+
)
36+
html_url: str = Field()
37+
website_url: Missing[Union[str, None]] = Field(
38+
default=UNSET, description="The enterprise's website URL."
39+
)
40+
id: int = Field(description="Unique identifier of the enterprise")
41+
node_id: str = Field()
42+
name: str = Field(description="The name of the enterprise.")
43+
slug: str = Field(description="The slug url identifier for the enterprise.")
44+
created_at: Union[datetime, None] = Field()
45+
updated_at: Union[datetime, None] = Field()
46+
avatar_url: str = Field()
47+
48+
49+
model_rebuild(EnterpriseWebhooks)
50+
51+
__all__ = ("EnterpriseWebhooks",)

githubkit/versions/ghec_v2022_11_28/models/group_0475.py

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,36 +9,26 @@
99

1010
from __future__ import annotations
1111

12-
from typing import Union
13-
1412
from pydantic import Field
1513

1614
from githubkit.compat import GitHubModel, model_rebuild
1715

1816

19-
class OrganizationSimpleWebhooks(GitHubModel):
20-
"""Organization Simple
17+
class SimpleInstallation(GitHubModel):
18+
"""Simple Installation
2119
22-
A GitHub organization. Webhook payloads contain the `organization` property when
23-
the webhook is configured for an
24-
organization, or when the event occurs from activity in a repository owned by an
25-
organization.
20+
The GitHub App installation. Webhook payloads contain the `installation`
21+
property when the event is configured
22+
for and sent to a GitHub App. For more information,
23+
see "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-
24+
cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-
25+
with-github-apps)."
2626
"""
2727

28-
login: str = Field()
29-
id: int = Field()
30-
node_id: str = Field()
31-
url: str = Field()
32-
repos_url: str = Field()
33-
events_url: str = Field()
34-
hooks_url: str = Field()
35-
issues_url: str = Field()
36-
members_url: str = Field()
37-
public_members_url: str = Field()
38-
avatar_url: str = Field()
39-
description: Union[str, None] = Field()
28+
id: int = Field(description="The ID of the installation.")
29+
node_id: str = Field(description="The global node ID of the installation.")
4030

4131

42-
model_rebuild(OrganizationSimpleWebhooks)
32+
model_rebuild(SimpleInstallation)
4333

44-
__all__ = ("OrganizationSimpleWebhooks",)
34+
__all__ = ("SimpleInstallation",)

0 commit comments

Comments
 (0)