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.
- githubkit/config.py +3 -0
- githubkit/core.py +5 -0
- githubkit/github.py +3 -0
- githubkit/versions/ghec_v2022_11_28/models/group_0051.py +5 -1
- githubkit/versions/ghec_v2022_11_28/models/group_0088.py +0 -1
- githubkit/versions/ghec_v2022_11_28/models/group_0098.py +4 -0
- githubkit/versions/ghec_v2022_11_28/models/group_1010.py +3 -1
- githubkit/versions/ghec_v2022_11_28/rest/actions.py +652 -472
- githubkit/versions/ghec_v2022_11_28/rest/activity.py +60 -44
- githubkit/versions/ghec_v2022_11_28/rest/apps.py +102 -74
- githubkit/versions/ghec_v2022_11_28/rest/billing.py +40 -32
- githubkit/versions/ghec_v2022_11_28/rest/checks.py +83 -66
- githubkit/versions/ghec_v2022_11_28/rest/code_scanning.py +74 -58
- githubkit/versions/ghec_v2022_11_28/rest/code_security.py +86 -66
- githubkit/versions/ghec_v2022_11_28/rest/codespaces.py +218 -154
- githubkit/versions/ghec_v2022_11_28/rest/copilot.py +72 -40
- githubkit/versions/ghec_v2022_11_28/rest/dependabot.py +68 -52
- githubkit/versions/ghec_v2022_11_28/rest/dependency_graph.py +14 -10
- githubkit/versions/ghec_v2022_11_28/rest/enterprise_admin.py +278 -208
- githubkit/versions/ghec_v2022_11_28/rest/gists.py +56 -40
- githubkit/versions/ghec_v2022_11_28/rest/git.py +84 -60
- githubkit/versions/ghec_v2022_11_28/rest/interactions.py +42 -30
- githubkit/versions/ghec_v2022_11_28/rest/issues.py +250 -198
- githubkit/versions/ghec_v2022_11_28/rest/markdown.py +34 -26
- githubkit/versions/ghec_v2022_11_28/rest/migrations.py +92 -60
- githubkit/versions/ghec_v2022_11_28/rest/oidc.py +14 -10
- githubkit/versions/ghec_v2022_11_28/rest/orgs.py +362 -246
- githubkit/versions/ghec_v2022_11_28/rest/projects.py +170 -126
- githubkit/versions/ghec_v2022_11_28/rest/pulls.py +234 -170
- githubkit/versions/ghec_v2022_11_28/rest/reactions.py +166 -130
- githubkit/versions/ghec_v2022_11_28/rest/repos.py +1035 -800
- githubkit/versions/ghec_v2022_11_28/rest/scim.py +50 -34
- githubkit/versions/ghec_v2022_11_28/rest/secret_scanning.py +36 -28
- githubkit/versions/ghec_v2022_11_28/rest/security_advisories.py +42 -30
- githubkit/versions/ghec_v2022_11_28/rest/teams.py +324 -238
- githubkit/versions/ghec_v2022_11_28/rest/users.py +154 -118
- githubkit/versions/ghec_v2022_11_28/types/group_0051.py +2 -1
- githubkit/versions/ghec_v2022_11_28/types/group_0088.py +0 -1
- githubkit/versions/ghec_v2022_11_28/types/group_0098.py +1 -0
- githubkit/versions/ghec_v2022_11_28/types/group_1010.py +3 -1
- githubkit/versions/v2022_11_28/models/group_0030.py +5 -1
- githubkit/versions/v2022_11_28/models/group_0060.py +0 -1
- githubkit/versions/v2022_11_28/models/group_0082.py +4 -0
- githubkit/versions/v2022_11_28/models/group_0936.py +3 -1
- githubkit/versions/v2022_11_28/rest/actions.py +534 -386
- githubkit/versions/v2022_11_28/rest/activity.py +60 -44
- githubkit/versions/v2022_11_28/rest/apps.py +102 -74
- githubkit/versions/v2022_11_28/rest/checks.py +83 -66
- githubkit/versions/v2022_11_28/rest/code_scanning.py +74 -58
- githubkit/versions/v2022_11_28/rest/code_security.py +86 -66
- githubkit/versions/v2022_11_28/rest/codespaces.py +218 -154
- githubkit/versions/v2022_11_28/rest/copilot.py +72 -40
- githubkit/versions/v2022_11_28/rest/dependabot.py +68 -52
- githubkit/versions/v2022_11_28/rest/dependency_graph.py +14 -10
- githubkit/versions/v2022_11_28/rest/gists.py +56 -40
- githubkit/versions/v2022_11_28/rest/git.py +84 -60
- githubkit/versions/v2022_11_28/rest/interactions.py +42 -30
- githubkit/versions/v2022_11_28/rest/issues.py +250 -198
- githubkit/versions/v2022_11_28/rest/markdown.py +34 -26
- githubkit/versions/v2022_11_28/rest/migrations.py +92 -60
- githubkit/versions/v2022_11_28/rest/oidc.py +14 -10
- githubkit/versions/v2022_11_28/rest/orgs.py +240 -168
- githubkit/versions/v2022_11_28/rest/projects.py +170 -126
- githubkit/versions/v2022_11_28/rest/pulls.py +234 -170
- githubkit/versions/v2022_11_28/rest/reactions.py +166 -130
- githubkit/versions/v2022_11_28/rest/repos.py +1035 -800
- githubkit/versions/v2022_11_28/rest/secret_scanning.py +36 -28
- githubkit/versions/v2022_11_28/rest/security_advisories.py +42 -30
- githubkit/versions/v2022_11_28/rest/teams.py +274 -204
- githubkit/versions/v2022_11_28/rest/users.py +154 -118
- githubkit/versions/v2022_11_28/types/group_0030.py +2 -1
- githubkit/versions/v2022_11_28/types/group_0060.py +0 -1
- githubkit/versions/v2022_11_28/types/group_0082.py +1 -0
- githubkit/versions/v2022_11_28/types/group_0936.py +3 -1
- {githubkit-0.11.12.dist-info → githubkit-0.11.14.dist-info}/METADATA +3 -2
- {githubkit-0.11.12.dist-info → githubkit-0.11.14.dist-info}/RECORD +78 -78
- {githubkit-0.11.12.dist-info → githubkit-0.11.14.dist-info}/WHEEL +1 -1
- {githubkit-0.11.12.dist-info → githubkit-0.11.14.dist-info}/LICENSE +0 -0
|
@@ -486,15 +486,17 @@ class SecretScanningClient:
|
|
|
486
486
|
|
|
487
487
|
url = f"/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
|
|
488
488
|
|
|
489
|
-
headers = {
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
489
|
+
headers = {
|
|
490
|
+
"Content-Type": "application/json",
|
|
491
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
492
|
+
**(headers or {}),
|
|
493
|
+
}
|
|
493
494
|
|
|
494
495
|
json = kwargs if data is UNSET else data
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
496
|
+
if self._github.config.rest_api_validate_body:
|
|
497
|
+
json = type_validate_python(
|
|
498
|
+
ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody, json
|
|
499
|
+
)
|
|
498
500
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
499
501
|
|
|
500
502
|
return self._github.request(
|
|
@@ -559,15 +561,17 @@ class SecretScanningClient:
|
|
|
559
561
|
|
|
560
562
|
url = f"/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
|
|
561
563
|
|
|
562
|
-
headers = {
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
564
|
+
headers = {
|
|
565
|
+
"Content-Type": "application/json",
|
|
566
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
567
|
+
**(headers or {}),
|
|
568
|
+
}
|
|
566
569
|
|
|
567
570
|
json = kwargs if data is UNSET else data
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
+
if self._github.config.rest_api_validate_body:
|
|
572
|
+
json = type_validate_python(
|
|
573
|
+
ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody, json
|
|
574
|
+
)
|
|
571
575
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
572
576
|
|
|
573
577
|
return await self._github.arequest(
|
|
@@ -702,15 +706,17 @@ class SecretScanningClient:
|
|
|
702
706
|
|
|
703
707
|
url = f"/repos/{owner}/{repo}/secret-scanning/push-protection-bypasses"
|
|
704
708
|
|
|
705
|
-
headers = {
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
+
headers = {
|
|
710
|
+
"Content-Type": "application/json",
|
|
711
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
712
|
+
**(headers or {}),
|
|
713
|
+
}
|
|
709
714
|
|
|
710
715
|
json = kwargs if data is UNSET else data
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
716
|
+
if self._github.config.rest_api_validate_body:
|
|
717
|
+
json = type_validate_python(
|
|
718
|
+
ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody, json
|
|
719
|
+
)
|
|
714
720
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
715
721
|
|
|
716
722
|
return self._github.request(
|
|
@@ -767,15 +773,17 @@ class SecretScanningClient:
|
|
|
767
773
|
|
|
768
774
|
url = f"/repos/{owner}/{repo}/secret-scanning/push-protection-bypasses"
|
|
769
775
|
|
|
770
|
-
headers = {
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
776
|
+
headers = {
|
|
777
|
+
"Content-Type": "application/json",
|
|
778
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
779
|
+
**(headers or {}),
|
|
780
|
+
}
|
|
774
781
|
|
|
775
782
|
json = kwargs if data is UNSET else data
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
783
|
+
if self._github.config.rest_api_validate_body:
|
|
784
|
+
json = type_validate_python(
|
|
785
|
+
ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody, json
|
|
786
|
+
)
|
|
779
787
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
780
788
|
|
|
781
789
|
return await self._github.arequest(
|
|
@@ -506,13 +506,15 @@ class SecurityAdvisoriesClient:
|
|
|
506
506
|
|
|
507
507
|
url = f"/repos/{owner}/{repo}/security-advisories"
|
|
508
508
|
|
|
509
|
-
headers = {
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
509
|
+
headers = {
|
|
510
|
+
"Content-Type": "application/json",
|
|
511
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
512
|
+
**(headers or {}),
|
|
513
|
+
}
|
|
513
514
|
|
|
514
515
|
json = kwargs if data is UNSET else data
|
|
515
|
-
|
|
516
|
+
if self._github.config.rest_api_validate_body:
|
|
517
|
+
json = type_validate_python(RepositoryAdvisoryCreate, json)
|
|
516
518
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
517
519
|
|
|
518
520
|
return self._github.request(
|
|
@@ -581,13 +583,15 @@ class SecurityAdvisoriesClient:
|
|
|
581
583
|
|
|
582
584
|
url = f"/repos/{owner}/{repo}/security-advisories"
|
|
583
585
|
|
|
584
|
-
headers = {
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
586
|
+
headers = {
|
|
587
|
+
"Content-Type": "application/json",
|
|
588
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
589
|
+
**(headers or {}),
|
|
590
|
+
}
|
|
588
591
|
|
|
589
592
|
json = kwargs if data is UNSET else data
|
|
590
|
-
|
|
593
|
+
if self._github.config.rest_api_validate_body:
|
|
594
|
+
json = type_validate_python(RepositoryAdvisoryCreate, json)
|
|
591
595
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
592
596
|
|
|
593
597
|
return await self._github.arequest(
|
|
@@ -656,13 +660,15 @@ class SecurityAdvisoriesClient:
|
|
|
656
660
|
|
|
657
661
|
url = f"/repos/{owner}/{repo}/security-advisories/reports"
|
|
658
662
|
|
|
659
|
-
headers = {
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
+
headers = {
|
|
664
|
+
"Content-Type": "application/json",
|
|
665
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
666
|
+
**(headers or {}),
|
|
667
|
+
}
|
|
663
668
|
|
|
664
669
|
json = kwargs if data is UNSET else data
|
|
665
|
-
|
|
670
|
+
if self._github.config.rest_api_validate_body:
|
|
671
|
+
json = type_validate_python(PrivateVulnerabilityReportCreate, json)
|
|
666
672
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
667
673
|
|
|
668
674
|
return self._github.request(
|
|
@@ -731,13 +737,15 @@ class SecurityAdvisoriesClient:
|
|
|
731
737
|
|
|
732
738
|
url = f"/repos/{owner}/{repo}/security-advisories/reports"
|
|
733
739
|
|
|
734
|
-
headers = {
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
740
|
+
headers = {
|
|
741
|
+
"Content-Type": "application/json",
|
|
742
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
743
|
+
**(headers or {}),
|
|
744
|
+
}
|
|
738
745
|
|
|
739
746
|
json = kwargs if data is UNSET else data
|
|
740
|
-
|
|
747
|
+
if self._github.config.rest_api_validate_body:
|
|
748
|
+
json = type_validate_python(PrivateVulnerabilityReportCreate, json)
|
|
741
749
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
742
750
|
|
|
743
751
|
return await self._github.arequest(
|
|
@@ -867,13 +875,15 @@ class SecurityAdvisoriesClient:
|
|
|
867
875
|
|
|
868
876
|
url = f"/repos/{owner}/{repo}/security-advisories/{ghsa_id}"
|
|
869
877
|
|
|
870
|
-
headers = {
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
878
|
+
headers = {
|
|
879
|
+
"Content-Type": "application/json",
|
|
880
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
881
|
+
**(headers or {}),
|
|
882
|
+
}
|
|
874
883
|
|
|
875
884
|
json = kwargs if data is UNSET else data
|
|
876
|
-
|
|
885
|
+
if self._github.config.rest_api_validate_body:
|
|
886
|
+
json = type_validate_python(RepositoryAdvisoryUpdate, json)
|
|
877
887
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
878
888
|
|
|
879
889
|
return self._github.request(
|
|
@@ -949,13 +959,15 @@ class SecurityAdvisoriesClient:
|
|
|
949
959
|
|
|
950
960
|
url = f"/repos/{owner}/{repo}/security-advisories/{ghsa_id}"
|
|
951
961
|
|
|
952
|
-
headers = {
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
962
|
+
headers = {
|
|
963
|
+
"Content-Type": "application/json",
|
|
964
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
965
|
+
**(headers or {}),
|
|
966
|
+
}
|
|
956
967
|
|
|
957
968
|
json = kwargs if data is UNSET else data
|
|
958
|
-
|
|
969
|
+
if self._github.config.rest_api_validate_body:
|
|
970
|
+
json = type_validate_python(RepositoryAdvisoryUpdate, json)
|
|
959
971
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
960
972
|
|
|
961
973
|
return await self._github.arequest(
|