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
|
@@ -204,13 +204,15 @@ class CodeSecurityClient:
|
|
|
204
204
|
|
|
205
205
|
url = f"/orgs/{org}/code-security/configurations"
|
|
206
206
|
|
|
207
|
-
headers = {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
207
|
+
headers = {
|
|
208
|
+
"Content-Type": "application/json",
|
|
209
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
210
|
+
**(headers or {}),
|
|
211
|
+
}
|
|
211
212
|
|
|
212
213
|
json = kwargs if data is UNSET else data
|
|
213
|
-
|
|
214
|
+
if self._github.config.rest_api_validate_body:
|
|
215
|
+
json = type_validate_python(OrgsOrgCodeSecurityConfigurationsPostBody, json)
|
|
214
216
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
215
217
|
|
|
216
218
|
return self._github.request(
|
|
@@ -287,13 +289,15 @@ class CodeSecurityClient:
|
|
|
287
289
|
|
|
288
290
|
url = f"/orgs/{org}/code-security/configurations"
|
|
289
291
|
|
|
290
|
-
headers = {
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
292
|
+
headers = {
|
|
293
|
+
"Content-Type": "application/json",
|
|
294
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
295
|
+
**(headers or {}),
|
|
296
|
+
}
|
|
294
297
|
|
|
295
298
|
json = kwargs if data is UNSET else data
|
|
296
|
-
|
|
299
|
+
if self._github.config.rest_api_validate_body:
|
|
300
|
+
json = type_validate_python(OrgsOrgCodeSecurityConfigurationsPostBody, json)
|
|
297
301
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
298
302
|
|
|
299
303
|
return await self._github.arequest(
|
|
@@ -394,15 +398,17 @@ class CodeSecurityClient:
|
|
|
394
398
|
|
|
395
399
|
url = f"/orgs/{org}/code-security/configurations/detach"
|
|
396
400
|
|
|
397
|
-
headers = {
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
+
headers = {
|
|
402
|
+
"Content-Type": "application/json",
|
|
403
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
404
|
+
**(headers or {}),
|
|
405
|
+
}
|
|
401
406
|
|
|
402
407
|
json = kwargs if data is UNSET else data
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
408
|
+
if self._github.config.rest_api_validate_body:
|
|
409
|
+
json = type_validate_python(
|
|
410
|
+
OrgsOrgCodeSecurityConfigurationsDetachDeleteBody, json
|
|
411
|
+
)
|
|
406
412
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
407
413
|
|
|
408
414
|
return self._github.request(
|
|
@@ -454,15 +460,17 @@ class CodeSecurityClient:
|
|
|
454
460
|
|
|
455
461
|
url = f"/orgs/{org}/code-security/configurations/detach"
|
|
456
462
|
|
|
457
|
-
headers = {
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
463
|
+
headers = {
|
|
464
|
+
"Content-Type": "application/json",
|
|
465
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
466
|
+
**(headers or {}),
|
|
467
|
+
}
|
|
461
468
|
|
|
462
469
|
json = kwargs if data is UNSET else data
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
470
|
+
if self._github.config.rest_api_validate_body:
|
|
471
|
+
json = type_validate_python(
|
|
472
|
+
OrgsOrgCodeSecurityConfigurationsDetachDeleteBody, json
|
|
473
|
+
)
|
|
466
474
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
467
475
|
|
|
468
476
|
return await self._github.arequest(
|
|
@@ -655,15 +663,17 @@ class CodeSecurityClient:
|
|
|
655
663
|
|
|
656
664
|
url = f"/orgs/{org}/code-security/configurations/{configuration_id}"
|
|
657
665
|
|
|
658
|
-
headers = {
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
666
|
+
headers = {
|
|
667
|
+
"Content-Type": "application/json",
|
|
668
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
669
|
+
**(headers or {}),
|
|
670
|
+
}
|
|
662
671
|
|
|
663
672
|
json = kwargs if data is UNSET else data
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
673
|
+
if self._github.config.rest_api_validate_body:
|
|
674
|
+
json = type_validate_python(
|
|
675
|
+
OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody, json
|
|
676
|
+
)
|
|
667
677
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
668
678
|
|
|
669
679
|
return self._github.request(
|
|
@@ -745,15 +755,17 @@ class CodeSecurityClient:
|
|
|
745
755
|
|
|
746
756
|
url = f"/orgs/{org}/code-security/configurations/{configuration_id}"
|
|
747
757
|
|
|
748
|
-
headers = {
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
758
|
+
headers = {
|
|
759
|
+
"Content-Type": "application/json",
|
|
760
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
761
|
+
**(headers or {}),
|
|
762
|
+
}
|
|
752
763
|
|
|
753
764
|
json = kwargs if data is UNSET else data
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
765
|
+
if self._github.config.rest_api_validate_body:
|
|
766
|
+
json = type_validate_python(
|
|
767
|
+
OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody, json
|
|
768
|
+
)
|
|
757
769
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
758
770
|
|
|
759
771
|
return await self._github.arequest(
|
|
@@ -806,15 +818,17 @@ class CodeSecurityClient:
|
|
|
806
818
|
|
|
807
819
|
url = f"/orgs/{org}/code-security/configurations/{configuration_id}/attach"
|
|
808
820
|
|
|
809
|
-
headers = {
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
821
|
+
headers = {
|
|
822
|
+
"Content-Type": "application/json",
|
|
823
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
824
|
+
**(headers or {}),
|
|
825
|
+
}
|
|
813
826
|
|
|
814
827
|
json = kwargs if data is UNSET else data
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
828
|
+
if self._github.config.rest_api_validate_body:
|
|
829
|
+
json = type_validate_python(
|
|
830
|
+
OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody, json
|
|
831
|
+
)
|
|
818
832
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
819
833
|
|
|
820
834
|
return self._github.request(
|
|
@@ -867,15 +881,17 @@ class CodeSecurityClient:
|
|
|
867
881
|
|
|
868
882
|
url = f"/orgs/{org}/code-security/configurations/{configuration_id}/attach"
|
|
869
883
|
|
|
870
|
-
headers = {
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
884
|
+
headers = {
|
|
885
|
+
"Content-Type": "application/json",
|
|
886
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
887
|
+
**(headers or {}),
|
|
888
|
+
}
|
|
874
889
|
|
|
875
890
|
json = kwargs if data is UNSET else data
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
891
|
+
if self._github.config.rest_api_validate_body:
|
|
892
|
+
json = type_validate_python(
|
|
893
|
+
OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody, json
|
|
894
|
+
)
|
|
879
895
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
880
896
|
|
|
881
897
|
return await self._github.arequest(
|
|
@@ -936,15 +952,17 @@ class CodeSecurityClient:
|
|
|
936
952
|
|
|
937
953
|
url = f"/orgs/{org}/code-security/configurations/{configuration_id}/defaults"
|
|
938
954
|
|
|
939
|
-
headers = {
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
955
|
+
headers = {
|
|
956
|
+
"Content-Type": "application/json",
|
|
957
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
958
|
+
**(headers or {}),
|
|
959
|
+
}
|
|
943
960
|
|
|
944
961
|
json = kwargs if data is UNSET else data
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
962
|
+
if self._github.config.rest_api_validate_body:
|
|
963
|
+
json = type_validate_python(
|
|
964
|
+
OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody, json
|
|
965
|
+
)
|
|
948
966
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
949
967
|
|
|
950
968
|
return self._github.request(
|
|
@@ -1009,15 +1027,17 @@ class CodeSecurityClient:
|
|
|
1009
1027
|
|
|
1010
1028
|
url = f"/orgs/{org}/code-security/configurations/{configuration_id}/defaults"
|
|
1011
1029
|
|
|
1012
|
-
headers = {
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1030
|
+
headers = {
|
|
1031
|
+
"Content-Type": "application/json",
|
|
1032
|
+
"X-GitHub-Api-Version": self._REST_API_VERSION,
|
|
1033
|
+
**(headers or {}),
|
|
1034
|
+
}
|
|
1016
1035
|
|
|
1017
1036
|
json = kwargs if data is UNSET else data
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1037
|
+
if self._github.config.rest_api_validate_body:
|
|
1038
|
+
json = type_validate_python(
|
|
1039
|
+
OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody, json
|
|
1040
|
+
)
|
|
1021
1041
|
json = model_dump(json) if isinstance(json, BaseModel) else json
|
|
1022
1042
|
|
|
1023
1043
|
return await self._github.arequest(
|