Skip to content

Commit 1b6919f

Browse files
authored
👽 re-generate openapi models and apis
1 parent 2738a55 commit 1b6919f

11,008 files changed

Lines changed: 685678 additions & 678252 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: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,6 +1221,12 @@
12211221
from githubkit.versions.v2026_03_10.models import (
12221222
NotificationsThreadsThreadIdSubscriptionPutBody as NotificationsThreadsThreadIdSubscriptionPutBody,
12231223
)
1224+
from githubkit.versions.v2026_03_10.models import (
1225+
OidcCustomPropertyInclusion as OidcCustomPropertyInclusion,
1226+
)
1227+
from githubkit.versions.v2026_03_10.models import (
1228+
OidcCustomPropertyInclusionInput as OidcCustomPropertyInclusionInput,
1229+
)
12241230
from githubkit.versions.v2026_03_10.models import OidcCustomSub as OidcCustomSub
12251231
from githubkit.versions.v2026_03_10.models import (
12261232
OidcCustomSubRepo as OidcCustomSubRepo,
@@ -1638,6 +1644,18 @@
16381644
from githubkit.versions.v2026_03_10.models import (
16391645
OrgsOrgCopilotBillingSelectedUsersPostResponse201 as OrgsOrgCopilotBillingSelectedUsersPostResponse201,
16401646
)
1647+
from githubkit.versions.v2026_03_10.models import (
1648+
OrgsOrgCopilotCodingAgentPermissionsGetResponse200 as OrgsOrgCopilotCodingAgentPermissionsGetResponse200,
1649+
)
1650+
from githubkit.versions.v2026_03_10.models import (
1651+
OrgsOrgCopilotCodingAgentPermissionsPutBody as OrgsOrgCopilotCodingAgentPermissionsPutBody,
1652+
)
1653+
from githubkit.versions.v2026_03_10.models import (
1654+
OrgsOrgCopilotCodingAgentPermissionsRepositoriesGetResponse200 as OrgsOrgCopilotCodingAgentPermissionsRepositoriesGetResponse200,
1655+
)
1656+
from githubkit.versions.v2026_03_10.models import (
1657+
OrgsOrgCopilotCodingAgentPermissionsRepositoriesPutBody as OrgsOrgCopilotCodingAgentPermissionsRepositoriesPutBody,
1658+
)
16411659
from githubkit.versions.v2026_03_10.models import (
16421660
OrgsOrgCopilotContentExclusionPutBody as OrgsOrgCopilotContentExclusionPutBody,
16431661
)
@@ -10327,6 +10345,8 @@
1032710345
"ClassroomAssignmentGrade",
1032810346
"ActionsCacheRetentionLimitForEnterprise",
1032910347
"ActionsCacheStorageLimitForEnterprise",
10348+
"OidcCustomPropertyInclusion",
10349+
"OidcCustomPropertyInclusionInput",
1033010350
"CodeSecurityConfiguration",
1033110351
"CodeSecurityConfigurationPropDependencyGraphAutosubmitActionOptions",
1033210352
"CodeSecurityConfigurationPropCodeScanningOptions",
@@ -13479,6 +13499,10 @@
1347913499
"OrgsOrgCopilotBillingSelectedUsersPostResponse201",
1348013500
"OrgsOrgCopilotBillingSelectedUsersDeleteBody",
1348113501
"OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",
13502+
"OrgsOrgCopilotCodingAgentPermissionsGetResponse200",
13503+
"OrgsOrgCopilotCodingAgentPermissionsPutBody",
13504+
"OrgsOrgCopilotCodingAgentPermissionsRepositoriesGetResponse200",
13505+
"OrgsOrgCopilotCodingAgentPermissionsRepositoriesPutBody",
1348213506
"OrgsOrgCopilotContentExclusionPutBody",
1348313507
"OrgsOrgCopilotContentExclusionPutResponse200",
1348413508
"OrgsOrgDependabotSecretsGetResponse200",

githubkit/versions/ghec_v2022_11_28/models/__init__.py

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

githubkit/versions/ghec_v2022_11_28/models/group_0017.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,10 @@ class AppPermissions(GitHubModel):
164164
default=UNSET,
165165
description="The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in public preview and is subject to change.",
166166
)
167+
organization_copilot_agent_settings: Missing[Literal["read", "write"]] = Field(
168+
default=UNSET,
169+
description="The level of permission to grant the access token to view and manage Copilot coding agent settings for an organization.",
170+
)
167171
organization_announcement_banners: Missing[Literal["read", "write"]] = Field(
168172
default=UNSET,
169173
description="The level of permission to grant the access token to view and manage announcement banners for an organization.",

githubkit/versions/ghec_v2022_11_28/models/group_0041.py

Lines changed: 11 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -14,34 +14,22 @@
1414
from pydantic import Field
1515

1616
from githubkit.compat import GitHubModel, model_rebuild
17-
from githubkit.typing import Missing
18-
from githubkit.utils import UNSET
1917

2018

21-
class ActionsEnterprisePermissions(GitHubModel):
22-
"""ActionsEnterprisePermissions"""
19+
class OidcCustomPropertyInclusion(GitHubModel):
20+
"""Actions OIDC Custom Property Inclusion
2321
24-
enabled_organizations: Literal["all", "none", "selected"] = Field(
25-
description="The policy that controls the organizations in the enterprise that are allowed to run GitHub Actions."
26-
)
27-
selected_organizations_url: Missing[str] = Field(
28-
default=UNSET,
29-
description="The API URL to use to get or set the selected organizations that are allowed to run GitHub Actions, when `enabled_organizations` is set to `selected`.",
30-
)
31-
allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field(
32-
default=UNSET,
33-
description="The permissions policy that controls the actions and reusable workflows that are allowed to run.",
34-
)
35-
selected_actions_url: Missing[str] = Field(
36-
default=UNSET,
37-
description="The API URL to use to get or set the actions and reusable workflows that are allowed to run, when `allowed_actions` is set to `selected`.",
22+
An OIDC custom property inclusion for repository properties
23+
"""
24+
25+
custom_property_name: str = Field(
26+
description="The name of the custom property that is included in the OIDC token"
3827
)
39-
sha_pinning_required: Missing[bool] = Field(
40-
default=UNSET,
41-
description="Whether actions must be pinned to a full-length commit SHA.",
28+
inclusion_source: Literal["organization", "enterprise"] = Field(
29+
description="Whether the inclusion was defined at the organization or enterprise level"
4230
)
4331

4432

45-
model_rebuild(ActionsEnterprisePermissions)
33+
model_rebuild(OidcCustomPropertyInclusion)
4634

47-
__all__ = ("ActionsEnterprisePermissions",)
35+
__all__ = ("OidcCustomPropertyInclusion",)

githubkit/versions/ghec_v2022_11_28/models/group_0042.py

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

1616

17-
class ActionsArtifactAndLogRetentionResponse(GitHubModel):
18-
"""ActionsArtifactAndLogRetentionResponse"""
17+
class OidcCustomPropertyInclusionInput(GitHubModel):
18+
"""Actions OIDC Custom Property Inclusion Input
1919
20-
days: int = Field(description="The number of days artifacts and logs are retained")
21-
maximum_allowed_days: int = Field(
22-
description="The maximum number of days that can be configured"
20+
Input for creating an OIDC custom property inclusion
21+
"""
22+
23+
custom_property_name: str = Field(
24+
description="The name of the custom property to include in the OIDC token"
2325
)
2426

2527

26-
model_rebuild(ActionsArtifactAndLogRetentionResponse)
28+
model_rebuild(OidcCustomPropertyInclusionInput)
2729

28-
__all__ = ("ActionsArtifactAndLogRetentionResponse",)
30+
__all__ = ("OidcCustomPropertyInclusionInput",)

githubkit/versions/ghec_v2022_11_28/models/group_0043.py

Lines changed: 33 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,39 @@
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
15-
16-
17-
class ActionsArtifactAndLogRetention(GitHubModel):
18-
"""ActionsArtifactAndLogRetention"""
19-
20-
days: int = Field(description="The number of days to retain artifacts and logs")
21-
22-
23-
model_rebuild(ActionsArtifactAndLogRetention)
24-
25-
__all__ = ("ActionsArtifactAndLogRetention",)
17+
from githubkit.typing import Missing
18+
from githubkit.utils import UNSET
19+
20+
21+
class ActionsEnterprisePermissions(GitHubModel):
22+
"""ActionsEnterprisePermissions"""
23+
24+
enabled_organizations: Literal["all", "none", "selected"] = Field(
25+
description="The policy that controls the organizations in the enterprise that are allowed to run GitHub Actions."
26+
)
27+
selected_organizations_url: Missing[str] = Field(
28+
default=UNSET,
29+
description="The API URL to use to get or set the selected organizations that are allowed to run GitHub Actions, when `enabled_organizations` is set to `selected`.",
30+
)
31+
allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field(
32+
default=UNSET,
33+
description="The permissions policy that controls the actions and reusable workflows that are allowed to run.",
34+
)
35+
selected_actions_url: Missing[str] = Field(
36+
default=UNSET,
37+
description="The API URL to use to get or set the actions and reusable workflows that are allowed to run, when `allowed_actions` is set to `selected`.",
38+
)
39+
sha_pinning_required: Missing[bool] = Field(
40+
default=UNSET,
41+
description="Whether actions must be pinned to a full-length commit SHA.",
42+
)
43+
44+
45+
model_rebuild(ActionsEnterprisePermissions)
46+
47+
__all__ = ("ActionsEnterprisePermissions",)

githubkit/versions/ghec_v2022_11_28/models/group_0044.py

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,20 @@
99

1010
from __future__ import annotations
1111

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

1614
from githubkit.compat import GitHubModel, model_rebuild
1715

1816

19-
class ActionsForkPrContributorApproval(GitHubModel):
20-
"""ActionsForkPrContributorApproval"""
17+
class ActionsArtifactAndLogRetentionResponse(GitHubModel):
18+
"""ActionsArtifactAndLogRetentionResponse"""
2119

22-
approval_policy: Literal[
23-
"first_time_contributors_new_to_github",
24-
"first_time_contributors",
25-
"all_external_contributors",
26-
] = Field(
27-
description="The policy that controls when fork PR workflows require approval from a maintainer."
20+
days: int = Field(description="The number of days artifacts and logs are retained")
21+
maximum_allowed_days: int = Field(
22+
description="The maximum number of days that can be configured"
2823
)
2924

3025

31-
model_rebuild(ActionsForkPrContributorApproval)
26+
model_rebuild(ActionsArtifactAndLogRetentionResponse)
3227

33-
__all__ = ("ActionsForkPrContributorApproval",)
28+
__all__ = ("ActionsArtifactAndLogRetentionResponse",)

githubkit/versions/ghec_v2022_11_28/models/group_0045.py

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,12 @@
1414
from githubkit.compat import GitHubModel, model_rebuild
1515

1616

17-
class ActionsForkPrWorkflowsPrivateRepos(GitHubModel):
18-
"""ActionsForkPrWorkflowsPrivateRepos"""
19-
20-
run_workflows_from_fork_pull_requests: bool = Field(
21-
description="Whether workflows triggered by pull requests from forks are allowed to run on private repositories."
22-
)
23-
send_write_tokens_to_workflows: bool = Field(
24-
description="Whether GitHub Actions can create pull requests or submit approving pull request reviews from a workflow triggered by a fork pull request."
25-
)
26-
send_secrets_and_variables: bool = Field(
27-
description="Whether to make secrets and variables available to workflows triggered by pull requests from forks."
28-
)
29-
require_approval_for_fork_pr_workflows: bool = Field(
30-
description="Whether workflows triggered by pull requests from forks require approval from a repository administrator to run."
31-
)
32-
33-
34-
model_rebuild(ActionsForkPrWorkflowsPrivateRepos)
35-
36-
__all__ = ("ActionsForkPrWorkflowsPrivateRepos",)
17+
class ActionsArtifactAndLogRetention(GitHubModel):
18+
"""ActionsArtifactAndLogRetention"""
19+
20+
days: int = Field(description="The number of days to retain artifacts and logs")
21+
22+
23+
model_rebuild(ActionsArtifactAndLogRetention)
24+
25+
__all__ = ("ActionsArtifactAndLogRetention",)

githubkit/versions/ghec_v2022_11_28/models/group_0046.py

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,25 @@
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
15-
from githubkit.typing import Missing
16-
from githubkit.utils import UNSET
1717

1818

19-
class ActionsForkPrWorkflowsPrivateReposRequest(GitHubModel):
20-
"""ActionsForkPrWorkflowsPrivateReposRequest"""
19+
class ActionsForkPrContributorApproval(GitHubModel):
20+
"""ActionsForkPrContributorApproval"""
2121

22-
run_workflows_from_fork_pull_requests: bool = Field(
23-
description="Whether workflows triggered by pull requests from forks are allowed to run on private repositories."
24-
)
25-
send_write_tokens_to_workflows: Missing[bool] = Field(
26-
default=UNSET,
27-
description="Whether GitHub Actions can create pull requests or submit approving pull request reviews from a workflow triggered by a fork pull request.",
28-
)
29-
send_secrets_and_variables: Missing[bool] = Field(
30-
default=UNSET,
31-
description="Whether to make secrets and variables available to workflows triggered by pull requests from forks.",
32-
)
33-
require_approval_for_fork_pr_workflows: Missing[bool] = Field(
34-
default=UNSET,
35-
description="Whether workflows triggered by pull requests from forks require approval from a repository administrator to run.",
22+
approval_policy: Literal[
23+
"first_time_contributors_new_to_github",
24+
"first_time_contributors",
25+
"all_external_contributors",
26+
] = Field(
27+
description="The policy that controls when fork PR workflows require approval from a maintainer."
3628
)
3729

3830

39-
model_rebuild(ActionsForkPrWorkflowsPrivateReposRequest)
31+
model_rebuild(ActionsForkPrContributorApproval)
4032

41-
__all__ = ("ActionsForkPrWorkflowsPrivateReposRequest",)
33+
__all__ = ("ActionsForkPrContributorApproval",)

githubkit/versions/ghec_v2022_11_28/models/group_0047.py

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,28 @@
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 OrganizationSimple(GitHubModel):
20-
"""Organization Simple
21-
22-
A GitHub organization.
23-
"""
17+
class ActionsForkPrWorkflowsPrivateRepos(GitHubModel):
18+
"""ActionsForkPrWorkflowsPrivateRepos"""
2419

25-
login: str = Field()
26-
id: int = Field()
27-
node_id: str = Field()
28-
url: str = Field()
29-
repos_url: str = Field()
30-
events_url: str = Field()
31-
hooks_url: str = Field()
32-
issues_url: str = Field()
33-
members_url: str = Field()
34-
public_members_url: str = Field()
35-
avatar_url: str = Field()
36-
description: Union[str, None] = Field()
20+
run_workflows_from_fork_pull_requests: bool = Field(
21+
description="Whether workflows triggered by pull requests from forks are allowed to run on private repositories."
22+
)
23+
send_write_tokens_to_workflows: bool = Field(
24+
description="Whether GitHub Actions can create pull requests or submit approving pull request reviews from a workflow triggered by a fork pull request."
25+
)
26+
send_secrets_and_variables: bool = Field(
27+
description="Whether to make secrets and variables available to workflows triggered by pull requests from forks."
28+
)
29+
require_approval_for_fork_pr_workflows: bool = Field(
30+
description="Whether workflows triggered by pull requests from forks require approval from a repository administrator to run."
31+
)
3732

3833

39-
model_rebuild(OrganizationSimple)
34+
model_rebuild(ActionsForkPrWorkflowsPrivateRepos)
4035

41-
__all__ = ("OrganizationSimple",)
36+
__all__ = ("ActionsForkPrWorkflowsPrivateRepos",)

0 commit comments

Comments
 (0)