githubkit 0.9.7__tar.gz → 0.10.0__tar.gz
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.
- {githubkit-0.9.7 → githubkit-0.10.0}/PKG-INFO +1 -1
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/auth/app.py +4 -4
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/actions.py +1332 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/activity.py +312 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/apps.py +372 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/billing.py +62 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/checks.py +122 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/code_scanning.py +278 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/codes_of_conduct.py +22 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/codespaces.py +472 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/dependabot.py +192 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/dependency_graph.py +22 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/emojis.py +12 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/gists.py +202 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/git.py +132 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/gitignore.py +22 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/interactions.py +92 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/issues.py +402 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/licenses.py +32 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/markdown.py +22 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/meta.py +52 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/migrations.py +222 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/models.py +557 -36
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/oidc.py +22 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/orgs.py +1276 -12
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/packages.py +358 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/projects.py +252 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/pulls.py +274 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/rate_limit.py +12 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/reactions.py +252 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/repos.py +1703 -1
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/search.py +72 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/secret_scanning.py +62 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/teams.py +602 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/types.py +334 -27
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/users.py +412 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/utils.py +2 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/pyproject.toml +25 -15
- {githubkit-0.9.7 → githubkit-0.10.0}/LICENSE +0 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/README.md +0 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/__init__.py +0 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/auth/__init__.py +0 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/auth/_url.py +0 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/auth/action.py +0 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/auth/base.py +0 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/auth/oauth.py +0 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/auth/token.py +0 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/auth/unauth.py +0 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/cache/__init__.py +0 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/cache/base.py +0 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/cache/mem_cache.py +0 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/config.py +0 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/core.py +0 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/exception.py +0 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/github.py +0 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/graphql/__init__.py +0 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/graphql/models.py +0 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/paginator.py +0 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/py.typed +0 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/response.py +0 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/__init__.py +4 -4
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/typing.py +0 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/webhooks/__init__.py +0 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/webhooks/models.py +0 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/webhooks/parse.py +0 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/webhooks/types.py +0 -0
- {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/webhooks/verify.py +0 -0
|
@@ -33,7 +33,7 @@ class AppAuth(httpx.Auth):
|
|
|
33
33
|
"""GitHub App or Installation Authentication Hook"""
|
|
34
34
|
|
|
35
35
|
github: "GitHubCore"
|
|
36
|
-
app_id: str
|
|
36
|
+
app_id: Union[str, int]
|
|
37
37
|
private_key: str
|
|
38
38
|
client_id: Optional[str] = None
|
|
39
39
|
client_secret: Optional[str] = None
|
|
@@ -59,7 +59,7 @@ class AppAuth(httpx.Auth):
|
|
|
59
59
|
time = datetime.now(timezone.utc) - timedelta(minutes=1)
|
|
60
60
|
expire_time = time + timedelta(minutes=10)
|
|
61
61
|
return jwt.encode(
|
|
62
|
-
{"iss": self.app_id, "iat": time, "exp": expire_time},
|
|
62
|
+
{"iss": str(self.app_id), "iat": time, "exp": expire_time},
|
|
63
63
|
self.private_key,
|
|
64
64
|
algorithm="RS256",
|
|
65
65
|
)
|
|
@@ -219,7 +219,7 @@ class AppAuth(httpx.Auth):
|
|
|
219
219
|
class AppAuthStrategy(BaseAuthStrategy):
|
|
220
220
|
"""GitHub App Authentication"""
|
|
221
221
|
|
|
222
|
-
app_id: str
|
|
222
|
+
app_id: Union[str, int]
|
|
223
223
|
private_key: str
|
|
224
224
|
client_id: Optional[str] = None
|
|
225
225
|
client_secret: Optional[str] = None
|
|
@@ -266,7 +266,7 @@ class AppAuthStrategy(BaseAuthStrategy):
|
|
|
266
266
|
class AppInstallationAuthStrategy(BaseAuthStrategy):
|
|
267
267
|
"""GitHub App Installation Authentication"""
|
|
268
268
|
|
|
269
|
-
app_id: str
|
|
269
|
+
app_id: Union[str, int]
|
|
270
270
|
private_key: str
|
|
271
271
|
installation_id: int
|
|
272
272
|
client_id: Optional[str] = None
|