Skip to content

Commit 026c942

Browse files
authored
👽 re-generate openapi models
1 parent 8b2325f commit 026c942

File tree

4,585 files changed

+199214
-197395
lines changed

Some content is hidden

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

4,585 files changed

+199214
-197395
lines changed

githubkit/rest/__init__.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,9 @@
631631
from githubkit.versions.v2022_11_28.models import (
632632
DependabotPublicKey as DependabotPublicKey,
633633
)
634+
from githubkit.versions.v2022_11_28.models import (
635+
DependabotRepositoryAccessDetails as DependabotRepositoryAccessDetails,
636+
)
634637
from githubkit.versions.v2022_11_28.models import (
635638
DependabotSecret as DependabotSecret,
636639
)
@@ -1142,6 +1145,15 @@
11421145
from githubkit.versions.v2022_11_28.models import (
11431146
OrganizationSimpleWebhooks as OrganizationSimpleWebhooks,
11441147
)
1148+
from githubkit.versions.v2022_11_28.models import (
1149+
OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody as OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody,
1150+
)
1151+
from githubkit.versions.v2022_11_28.models import (
1152+
OrganizationsOrgDependabotRepositoryAccessPatchBodyOneof0 as OrganizationsOrgDependabotRepositoryAccessPatchBodyOneof0,
1153+
)
1154+
from githubkit.versions.v2022_11_28.models import (
1155+
OrganizationsOrgDependabotRepositoryAccessPatchBodyOneof1 as OrganizationsOrgDependabotRepositoryAccessPatchBodyOneof1,
1156+
)
11451157
from githubkit.versions.v2022_11_28.models import (
11461158
OrganizationUpdateIssueType as OrganizationUpdateIssueType,
11471159
)
@@ -1965,6 +1977,9 @@
19651977
from githubkit.versions.v2022_11_28.models import (
19661978
RepositoryInvitation as RepositoryInvitation,
19671979
)
1980+
from githubkit.versions.v2022_11_28.models import (
1981+
RepositoryPropCodeSearchIndexStatus as RepositoryPropCodeSearchIndexStatus,
1982+
)
19681983
from githubkit.versions.v2022_11_28.models import (
19691984
RepositoryPropPermissions as RepositoryPropPermissions,
19701985
)
@@ -9773,6 +9788,7 @@
97739788
"LicenseSimple",
97749789
"Repository",
97759790
"RepositoryPropPermissions",
9791+
"RepositoryPropCodeSearchIndexStatus",
97769792
"InstallationToken",
97779793
"ScopedInstallation",
97789794
"Authorization",
@@ -9863,6 +9879,7 @@
98639879
"ThreadPropSubject",
98649880
"ThreadSubscription",
98659881
"OrganizationSimple",
9882+
"DependabotRepositoryAccessDetails",
98669883
"BillingUsageReport",
98679884
"BillingUsageReportPropUsageItemsItems",
98689885
"OrganizationFull",
@@ -12675,6 +12692,9 @@
1267512692
"NotificationsPutBody",
1267612693
"NotificationsPutResponse202",
1267712694
"NotificationsThreadsThreadIdSubscriptionPutBody",
12695+
"OrganizationsOrgDependabotRepositoryAccessPatchBodyOneof0",
12696+
"OrganizationsOrgDependabotRepositoryAccessPatchBodyOneof1",
12697+
"OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody",
1267812698
"OrgsOrgPatchBody",
1267912699
"OrgsOrgActionsCacheUsageByRepositoryGetResponse200",
1268012700
"ActionsCacheUsageByRepository",

githubkit/versions/ghec_v2022_11_28/models/__init__.py

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

githubkit/versions/ghec_v2022_11_28/models/group_0010.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,13 @@ class actors within GitHub.
4848
permissions: IntegrationPropPermissions = Field(
4949
description="The set of permissions for the GitHub app"
5050
)
51-
events: list[str] = Field(description="The list of events for the GitHub app")
51+
events: list[str] = Field(
52+
description="The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation."
53+
)
5254
installations_count: Missing[int] = Field(
5355
default=UNSET,
54-
description="The number of installations associated with the GitHub app",
56+
description="The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself.",
5557
)
56-
client_secret: Missing[str] = Field(default=UNSET)
57-
webhook_secret: Missing[Union[str, None]] = Field(default=UNSET)
58-
pem: Missing[str] = Field(default=UNSET)
5958

6059

6160
model_rebuild(Integration)

githubkit/versions/ghec_v2022_11_28/models/group_0020.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@ class Repository(GitHubModel):
185185
default=UNSET,
186186
description="Whether anonymous git access is enabled for this repository",
187187
)
188+
code_search_index_status: Missing[RepositoryPropCodeSearchIndexStatus] = Field(
189+
default=UNSET,
190+
description="The status of the code search index for this repository",
191+
)
188192

189193

190194
class RepositoryPropPermissions(GitHubModel):
@@ -197,10 +201,22 @@ class RepositoryPropPermissions(GitHubModel):
197201
maintain: Missing[bool] = Field(default=UNSET)
198202

199203

204+
class RepositoryPropCodeSearchIndexStatus(GitHubModel):
205+
"""RepositoryPropCodeSearchIndexStatus
206+
207+
The status of the code search index for this repository
208+
"""
209+
210+
lexical_search_ok: Missing[bool] = Field(default=UNSET)
211+
lexical_commit_sha: Missing[str] = Field(default=UNSET)
212+
213+
200214
model_rebuild(Repository)
201215
model_rebuild(RepositoryPropPermissions)
216+
model_rebuild(RepositoryPropCodeSearchIndexStatus)
202217

203218
__all__ = (
204219
"Repository",
220+
"RepositoryPropCodeSearchIndexStatus",
205221
"RepositoryPropPermissions",
206222
)

githubkit/versions/ghec_v2022_11_28/models/group_0172.py

Lines changed: 11 additions & 120 deletions
Original file line numberDiff line numberDiff line change
@@ -9,140 +9,31 @@
99

1010
from __future__ import annotations
1111

12-
from datetime import datetime
13-
from typing import Union
12+
from typing import Literal, Union
1413

1514
from pydantic import Field
1615

1716
from githubkit.compat import GitHubModel, model_rebuild
1817
from githubkit.typing import Missing
1918
from githubkit.utils import UNSET
2019

20+
from .group_0058 import SimpleRepository
2121

22-
class OrganizationFull(GitHubModel):
23-
"""Organization Full
2422

25-
Prevents users in the organization from using insecure methods of two-factor
26-
authentication to fulfill a two-factor requirement.
27-
Removes non-compliant outside collaborators from the organization and its
28-
repositories.
23+
class DependabotRepositoryAccessDetails(GitHubModel):
24+
"""Dependabot Repository Access Details
2925
30-
GitHub currently defines SMS as an insecure method of two-factor authentication.
31-
32-
If your users are managed by the enterprise this policy will not affect them.
33-
The first admin account of the enterprise will still be affected.
26+
Information about repositories that Dependabot is able to access in an
27+
organization
3428
"""
3529

36-
login: str = Field()
37-
id: int = Field()
38-
node_id: str = Field()
39-
url: str = Field()
40-
repos_url: str = Field()
41-
events_url: str = Field()
42-
hooks_url: str = Field()
43-
issues_url: str = Field()
44-
members_url: str = Field()
45-
public_members_url: str = Field()
46-
avatar_url: str = Field()
47-
description: Union[str, None] = Field()
48-
name: Missing[Union[str, None]] = Field(default=UNSET)
49-
company: Missing[Union[str, None]] = Field(default=UNSET)
50-
blog: Missing[Union[str, None]] = Field(default=UNSET)
51-
location: Missing[Union[str, None]] = Field(default=UNSET)
52-
email: Missing[Union[str, None]] = Field(default=UNSET)
53-
twitter_username: Missing[Union[str, None]] = Field(default=UNSET)
54-
is_verified: Missing[bool] = Field(default=UNSET)
55-
has_organization_projects: bool = Field()
56-
has_repository_projects: bool = Field()
57-
public_repos: int = Field()
58-
public_gists: int = Field()
59-
followers: int = Field()
60-
following: int = Field()
61-
html_url: str = Field()
62-
type: str = Field()
63-
total_private_repos: Missing[int] = Field(default=UNSET)
64-
owned_private_repos: Missing[int] = Field(default=UNSET)
65-
private_gists: Missing[Union[int, None]] = Field(default=UNSET)
66-
disk_usage: Missing[Union[int, None]] = Field(default=UNSET)
67-
collaborators: Missing[Union[int, None]] = Field(
68-
default=UNSET,
69-
description="The number of collaborators on private repositories.\n\nThis field may be null if the number of private repositories is over 50,000.",
70-
)
71-
billing_email: Missing[Union[str, None]] = Field(default=UNSET)
72-
plan: Missing[OrganizationFullPropPlan] = Field(default=UNSET)
73-
default_repository_permission: Missing[Union[str, None]] = Field(default=UNSET)
74-
members_can_create_repositories: Missing[Union[bool, None]] = Field(default=UNSET)
75-
two_factor_requirement_enabled: Missing[Union[bool, None]] = Field(default=UNSET)
76-
members_allowed_repository_creation_type: Missing[str] = Field(default=UNSET)
77-
members_can_create_public_repositories: Missing[bool] = Field(default=UNSET)
78-
members_can_create_private_repositories: Missing[bool] = Field(default=UNSET)
79-
members_can_create_internal_repositories: Missing[bool] = Field(default=UNSET)
80-
members_can_create_pages: Missing[bool] = Field(default=UNSET)
81-
members_can_create_public_pages: Missing[bool] = Field(default=UNSET)
82-
members_can_create_private_pages: Missing[bool] = Field(default=UNSET)
83-
members_can_fork_private_repositories: Missing[Union[bool, None]] = Field(
84-
default=UNSET
85-
)
86-
web_commit_signoff_required: Missing[bool] = Field(default=UNSET)
87-
advanced_security_enabled_for_new_repositories: Missing[bool] = Field(
30+
default_level: Missing[Union[None, Literal["public", "internal"]]] = Field(
8831
default=UNSET,
89-
description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether GitHub Advanced Security is enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.",
32+
description="The default repository access level for Dependabot updates.",
9033
)
91-
dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field(
92-
default=UNSET,
93-
description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether Dependabot alerts are automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.",
94-
)
95-
dependabot_security_updates_enabled_for_new_repositories: Missing[bool] = Field(
96-
default=UNSET,
97-
description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether Dependabot security updates are automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.",
98-
)
99-
dependency_graph_enabled_for_new_repositories: Missing[bool] = Field(
100-
default=UNSET,
101-
description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether dependency graph is automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.",
102-
)
103-
secret_scanning_enabled_for_new_repositories: Missing[bool] = Field(
104-
default=UNSET,
105-
description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether secret scanning is automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.",
106-
)
107-
secret_scanning_push_protection_enabled_for_new_repositories: Missing[bool] = Field(
108-
default=UNSET,
109-
description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether secret scanning push protection is automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.",
110-
)
111-
secret_scanning_push_protection_custom_link_enabled: Missing[bool] = Field(
112-
default=UNSET,
113-
description="Whether a custom link is shown to contributors who are blocked from pushing a secret by push protection.",
114-
)
115-
secret_scanning_push_protection_custom_link: Missing[Union[str, None]] = Field(
116-
default=UNSET,
117-
description="An optional URL string to display to contributors who are blocked from pushing a secret.",
118-
)
119-
secret_scanning_validity_checks_enabled: Missing[bool] = Field(
120-
default=UNSET,
121-
description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether secret scanning automatic validity checks on supported partner tokens is enabled for all repositories under this organization.",
122-
)
123-
created_at: datetime = Field()
124-
updated_at: datetime = Field()
125-
archived_at: Union[datetime, None] = Field()
126-
deploy_keys_enabled_for_repositories: Missing[bool] = Field(
127-
default=UNSET,
128-
description="Controls whether or not deploy keys may be added and used for repositories in the organization.",
129-
)
130-
131-
132-
class OrganizationFullPropPlan(GitHubModel):
133-
"""OrganizationFullPropPlan"""
134-
135-
name: str = Field()
136-
space: int = Field()
137-
private_repos: int = Field()
138-
filled_seats: Missing[int] = Field(default=UNSET)
139-
seats: Missing[int] = Field(default=UNSET)
34+
accessible_repositories: Missing[list[SimpleRepository]] = Field(default=UNSET)
14035

14136

142-
model_rebuild(OrganizationFull)
143-
model_rebuild(OrganizationFullPropPlan)
37+
model_rebuild(DependabotRepositoryAccessDetails)
14438

145-
__all__ = (
146-
"OrganizationFull",
147-
"OrganizationFullPropPlan",
148-
)
39+
__all__ = ("DependabotRepositoryAccessDetails",)

0 commit comments

Comments
 (0)