GitHubKit 0.11.12__py3-none-any.whl → 0.11.14__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of GitHubKit might be problematic. Click here for more details.

Files changed (78) hide show
  1. githubkit/config.py +3 -0
  2. githubkit/core.py +5 -0
  3. githubkit/github.py +3 -0
  4. githubkit/versions/ghec_v2022_11_28/models/group_0051.py +5 -1
  5. githubkit/versions/ghec_v2022_11_28/models/group_0088.py +0 -1
  6. githubkit/versions/ghec_v2022_11_28/models/group_0098.py +4 -0
  7. githubkit/versions/ghec_v2022_11_28/models/group_1010.py +3 -1
  8. githubkit/versions/ghec_v2022_11_28/rest/actions.py +652 -472
  9. githubkit/versions/ghec_v2022_11_28/rest/activity.py +60 -44
  10. githubkit/versions/ghec_v2022_11_28/rest/apps.py +102 -74
  11. githubkit/versions/ghec_v2022_11_28/rest/billing.py +40 -32
  12. githubkit/versions/ghec_v2022_11_28/rest/checks.py +83 -66
  13. githubkit/versions/ghec_v2022_11_28/rest/code_scanning.py +74 -58
  14. githubkit/versions/ghec_v2022_11_28/rest/code_security.py +86 -66
  15. githubkit/versions/ghec_v2022_11_28/rest/codespaces.py +218 -154
  16. githubkit/versions/ghec_v2022_11_28/rest/copilot.py +72 -40
  17. githubkit/versions/ghec_v2022_11_28/rest/dependabot.py +68 -52
  18. githubkit/versions/ghec_v2022_11_28/rest/dependency_graph.py +14 -10
  19. githubkit/versions/ghec_v2022_11_28/rest/enterprise_admin.py +278 -208
  20. githubkit/versions/ghec_v2022_11_28/rest/gists.py +56 -40
  21. githubkit/versions/ghec_v2022_11_28/rest/git.py +84 -60
  22. githubkit/versions/ghec_v2022_11_28/rest/interactions.py +42 -30
  23. githubkit/versions/ghec_v2022_11_28/rest/issues.py +250 -198
  24. githubkit/versions/ghec_v2022_11_28/rest/markdown.py +34 -26
  25. githubkit/versions/ghec_v2022_11_28/rest/migrations.py +92 -60
  26. githubkit/versions/ghec_v2022_11_28/rest/oidc.py +14 -10
  27. githubkit/versions/ghec_v2022_11_28/rest/orgs.py +362 -246
  28. githubkit/versions/ghec_v2022_11_28/rest/projects.py +170 -126
  29. githubkit/versions/ghec_v2022_11_28/rest/pulls.py +234 -170
  30. githubkit/versions/ghec_v2022_11_28/rest/reactions.py +166 -130
  31. githubkit/versions/ghec_v2022_11_28/rest/repos.py +1035 -800
  32. githubkit/versions/ghec_v2022_11_28/rest/scim.py +50 -34
  33. githubkit/versions/ghec_v2022_11_28/rest/secret_scanning.py +36 -28
  34. githubkit/versions/ghec_v2022_11_28/rest/security_advisories.py +42 -30
  35. githubkit/versions/ghec_v2022_11_28/rest/teams.py +324 -238
  36. githubkit/versions/ghec_v2022_11_28/rest/users.py +154 -118
  37. githubkit/versions/ghec_v2022_11_28/types/group_0051.py +2 -1
  38. githubkit/versions/ghec_v2022_11_28/types/group_0088.py +0 -1
  39. githubkit/versions/ghec_v2022_11_28/types/group_0098.py +1 -0
  40. githubkit/versions/ghec_v2022_11_28/types/group_1010.py +3 -1
  41. githubkit/versions/v2022_11_28/models/group_0030.py +5 -1
  42. githubkit/versions/v2022_11_28/models/group_0060.py +0 -1
  43. githubkit/versions/v2022_11_28/models/group_0082.py +4 -0
  44. githubkit/versions/v2022_11_28/models/group_0936.py +3 -1
  45. githubkit/versions/v2022_11_28/rest/actions.py +534 -386
  46. githubkit/versions/v2022_11_28/rest/activity.py +60 -44
  47. githubkit/versions/v2022_11_28/rest/apps.py +102 -74
  48. githubkit/versions/v2022_11_28/rest/checks.py +83 -66
  49. githubkit/versions/v2022_11_28/rest/code_scanning.py +74 -58
  50. githubkit/versions/v2022_11_28/rest/code_security.py +86 -66
  51. githubkit/versions/v2022_11_28/rest/codespaces.py +218 -154
  52. githubkit/versions/v2022_11_28/rest/copilot.py +72 -40
  53. githubkit/versions/v2022_11_28/rest/dependabot.py +68 -52
  54. githubkit/versions/v2022_11_28/rest/dependency_graph.py +14 -10
  55. githubkit/versions/v2022_11_28/rest/gists.py +56 -40
  56. githubkit/versions/v2022_11_28/rest/git.py +84 -60
  57. githubkit/versions/v2022_11_28/rest/interactions.py +42 -30
  58. githubkit/versions/v2022_11_28/rest/issues.py +250 -198
  59. githubkit/versions/v2022_11_28/rest/markdown.py +34 -26
  60. githubkit/versions/v2022_11_28/rest/migrations.py +92 -60
  61. githubkit/versions/v2022_11_28/rest/oidc.py +14 -10
  62. githubkit/versions/v2022_11_28/rest/orgs.py +240 -168
  63. githubkit/versions/v2022_11_28/rest/projects.py +170 -126
  64. githubkit/versions/v2022_11_28/rest/pulls.py +234 -170
  65. githubkit/versions/v2022_11_28/rest/reactions.py +166 -130
  66. githubkit/versions/v2022_11_28/rest/repos.py +1035 -800
  67. githubkit/versions/v2022_11_28/rest/secret_scanning.py +36 -28
  68. githubkit/versions/v2022_11_28/rest/security_advisories.py +42 -30
  69. githubkit/versions/v2022_11_28/rest/teams.py +274 -204
  70. githubkit/versions/v2022_11_28/rest/users.py +154 -118
  71. githubkit/versions/v2022_11_28/types/group_0030.py +2 -1
  72. githubkit/versions/v2022_11_28/types/group_0060.py +0 -1
  73. githubkit/versions/v2022_11_28/types/group_0082.py +1 -0
  74. githubkit/versions/v2022_11_28/types/group_0936.py +3 -1
  75. {githubkit-0.11.12.dist-info → githubkit-0.11.14.dist-info}/METADATA +3 -2
  76. {githubkit-0.11.12.dist-info → githubkit-0.11.14.dist-info}/RECORD +78 -78
  77. {githubkit-0.11.12.dist-info → githubkit-0.11.14.dist-info}/WHEEL +1 -1
  78. {githubkit-0.11.12.dist-info → githubkit-0.11.14.dist-info}/LICENSE +0 -0
githubkit/config.py CHANGED
@@ -17,6 +17,7 @@ class Config:
17
17
  timeout: httpx.Timeout
18
18
  http_cache: bool
19
19
  auto_retry: Optional[RetryDecisionFunc]
20
+ rest_api_validate_body: bool
20
21
 
21
22
  def dict(self) -> Dict[str, Any]:
22
23
  return asdict(self)
@@ -83,6 +84,7 @@ def get_config(
83
84
  timeout: Optional[Union[float, httpx.Timeout]] = None,
84
85
  http_cache: bool = True,
85
86
  auto_retry: Union[bool, RetryDecisionFunc] = True,
87
+ rest_api_validate_body: bool = True,
86
88
  ) -> Config:
87
89
  return Config(
88
90
  build_base_url(base_url),
@@ -92,4 +94,5 @@ def get_config(
92
94
  build_timeout(timeout),
93
95
  http_cache,
94
96
  build_auto_retry(auto_retry),
97
+ rest_api_validate_body,
95
98
  )
githubkit/core.py CHANGED
@@ -93,6 +93,7 @@ class GitHubCore(Generic[A]):
93
93
  timeout: Optional[Union[float, httpx.Timeout]] = None,
94
94
  http_cache: bool = True,
95
95
  auto_retry: Union[bool, RetryDecisionFunc] = True,
96
+ rest_api_validate_body: bool = True,
96
97
  ): ...
97
98
 
98
99
  # token auth without config
@@ -109,6 +110,7 @@ class GitHubCore(Generic[A]):
109
110
  timeout: Optional[Union[float, httpx.Timeout]] = None,
110
111
  http_cache: bool = True,
111
112
  auto_retry: Union[bool, RetryDecisionFunc] = True,
113
+ rest_api_validate_body: bool = True,
112
114
  ): ...
113
115
 
114
116
  # other auth strategies without config
@@ -125,6 +127,7 @@ class GitHubCore(Generic[A]):
125
127
  timeout: Optional[Union[float, httpx.Timeout]] = None,
126
128
  http_cache: bool = True,
127
129
  auto_retry: Union[bool, RetryDecisionFunc] = True,
130
+ rest_api_validate_body: bool = True,
128
131
  ): ...
129
132
 
130
133
  def __init__(
@@ -140,6 +143,7 @@ class GitHubCore(Generic[A]):
140
143
  timeout: Optional[Union[float, httpx.Timeout]] = None,
141
144
  http_cache: bool = True,
142
145
  auto_retry: Union[bool, RetryDecisionFunc] = True,
146
+ rest_api_validate_body: bool = True,
143
147
  ):
144
148
  auth = auth or UnauthAuthStrategy() # type: ignore
145
149
  self.auth: A = ( # type: ignore
@@ -155,6 +159,7 @@ class GitHubCore(Generic[A]):
155
159
  timeout,
156
160
  http_cache,
157
161
  auto_retry,
162
+ rest_api_validate_body,
158
163
  )
159
164
 
160
165
  self.__sync_client: ContextVar[Optional[httpx.Client]] = ContextVar(
githubkit/github.py CHANGED
@@ -84,6 +84,7 @@ class GitHub(GitHubCore[A]):
84
84
  timeout: Optional[Union[float, httpx.Timeout]] = None,
85
85
  http_cache: bool = True,
86
86
  auto_retry: Union[bool, RetryDecisionFunc] = True,
87
+ rest_api_validate_body: bool = True,
87
88
  ): ...
88
89
 
89
90
  # token auth without config
@@ -100,6 +101,7 @@ class GitHub(GitHubCore[A]):
100
101
  timeout: Optional[Union[float, httpx.Timeout]] = None,
101
102
  http_cache: bool = True,
102
103
  auto_retry: Union[bool, RetryDecisionFunc] = True,
104
+ rest_api_validate_body: bool = True,
103
105
  ): ...
104
106
 
105
107
  # other auth strategies without config
@@ -116,6 +118,7 @@ class GitHub(GitHubCore[A]):
116
118
  timeout: Optional[Union[float, httpx.Timeout]] = None,
117
119
  http_cache: bool = True,
118
120
  auto_retry: Union[bool, RetryDecisionFunc] = True,
121
+ rest_api_validate_body: bool = True,
119
122
  ): ...
120
123
 
121
124
  def __init__(self, *args, **kwargs): ...
@@ -9,7 +9,7 @@ See https://github.com/github/rest-api-description for more information.
9
9
 
10
10
  from __future__ import annotations
11
11
 
12
- from typing import Union
12
+ from typing import Union, Literal
13
13
  from datetime import date, datetime
14
14
 
15
15
  from pydantic import Field
@@ -55,6 +55,10 @@ class CopilotSeatDetails(GitHubModel):
55
55
  default=UNSET,
56
56
  description="Timestamp of when the assignee's GitHub Copilot access was last updated, in ISO 8601 format.",
57
57
  )
58
+ plan_type: Missing[Literal["business", "enterprise", "unknown"]] = Field(
59
+ default=UNSET,
60
+ description="The Copilot plan of the organization, or the parent enterprise, when applicable.",
61
+ )
58
62
 
59
63
 
60
64
  class EnterpriseTeam(GitHubModel):
@@ -62,7 +62,6 @@ class OrganizationFull(GitHubModel):
62
62
  owned_private_repos: Missing[int] = Field(default=UNSET)
63
63
  private_gists: Missing[Union[int, None]] = Field(default=UNSET)
64
64
  disk_usage: Missing[Union[int, None]] = Field(default=UNSET)
65
- collaborators: Missing[Union[int, None]] = Field(default=UNSET)
66
65
  billing_email: Missing[Union[str, None]] = Field(default=UNSET)
67
66
  plan: Missing[OrganizationFullPropPlan] = Field(default=UNSET)
68
67
  default_repository_permission: Missing[Union[str, None]] = Field(default=UNSET)
@@ -49,6 +49,10 @@ class CopilotOrganizationDetails(ExtraGitHubModel):
49
49
  seat_management_setting: Literal[
50
50
  "assign_all", "assign_selected", "disabled", "unconfigured"
51
51
  ] = Field(description="The mode of assigning new seats.")
52
+ plan_type: Missing[Literal["business", "enterprise", "unknown"]] = Field(
53
+ default=UNSET,
54
+ description="The Copilot plan of the organization, or the parent enterprise, when applicable.",
55
+ )
52
56
 
53
57
 
54
58
  class CopilotSeatBreakdown(GitHubModel):
@@ -38,7 +38,9 @@ class ReposOwnerRepoCheckRunsPostBodyOneof1(ExtraGitHubModel):
38
38
  external_id: Missing[str] = Field(
39
39
  default=UNSET, description="A reference for the run on the integrator's system."
40
40
  )
41
- status: Missing[Literal["queued", "in_progress"]] = Field(default=UNSET)
41
+ status: Missing[
42
+ Literal["queued", "in_progress", "waiting", "requested", "pending"]
43
+ ] = Field(default=UNSET)
42
44
  started_at: Missing[datetime] = Field(
43
45
  default=UNSET,
44
46
  description="The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.",