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
@@ -204,13 +204,15 @@ class CodeSecurityClient:
204
204
 
205
205
  url = f"/orgs/{org}/code-security/configurations"
206
206
 
207
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
208
-
209
- if not kwargs:
210
- kwargs = UNSET
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
- json = type_validate_python(OrgsOrgCodeSecurityConfigurationsPostBody, json)
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 = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
291
-
292
- if not kwargs:
293
- kwargs = UNSET
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
- json = type_validate_python(OrgsOrgCodeSecurityConfigurationsPostBody, json)
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 = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
398
-
399
- if not kwargs:
400
- kwargs = UNSET
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
- json = type_validate_python(
404
- OrgsOrgCodeSecurityConfigurationsDetachDeleteBody, json
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 = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
458
-
459
- if not kwargs:
460
- kwargs = UNSET
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
- json = type_validate_python(
464
- OrgsOrgCodeSecurityConfigurationsDetachDeleteBody, json
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 = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
659
-
660
- if not kwargs:
661
- kwargs = UNSET
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
- json = type_validate_python(
665
- OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody, json
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 = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
749
-
750
- if not kwargs:
751
- kwargs = UNSET
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
- json = type_validate_python(
755
- OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody, json
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 = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
810
-
811
- if not kwargs:
812
- kwargs = UNSET
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
- json = type_validate_python(
816
- OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody, json
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 = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
871
-
872
- if not kwargs:
873
- kwargs = UNSET
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
- json = type_validate_python(
877
- OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody, json
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 = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
940
-
941
- if not kwargs:
942
- kwargs = UNSET
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
- json = type_validate_python(
946
- OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody, json
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 = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
1013
-
1014
- if not kwargs:
1015
- kwargs = UNSET
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
- json = type_validate_python(
1019
- OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody, json
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(