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
@@ -157,13 +157,15 @@ class UsersClient:
157
157
 
158
158
  url = "/user"
159
159
 
160
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
161
-
162
- if not kwargs:
163
- kwargs = UNSET
160
+ headers = {
161
+ "Content-Type": "application/json",
162
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
163
+ **(headers or {}),
164
+ }
164
165
 
165
166
  json = kwargs if data is UNSET else data
166
- json = type_validate_python(UserPatchBody, json)
167
+ if self._github.config.rest_api_validate_body:
168
+ json = type_validate_python(UserPatchBody, json)
167
169
  json = model_dump(json) if isinstance(json, BaseModel) else json
168
170
 
169
171
  return self._github.request(
@@ -217,13 +219,15 @@ class UsersClient:
217
219
 
218
220
  url = "/user"
219
221
 
220
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
221
-
222
- if not kwargs:
223
- kwargs = UNSET
222
+ headers = {
223
+ "Content-Type": "application/json",
224
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
225
+ **(headers or {}),
226
+ }
224
227
 
225
228
  json = kwargs if data is UNSET else data
226
- json = type_validate_python(UserPatchBody, json)
229
+ if self._github.config.rest_api_validate_body:
230
+ json = type_validate_python(UserPatchBody, json)
227
231
  json = model_dump(json) if isinstance(json, BaseModel) else json
228
232
 
229
233
  return await self._github.arequest(
@@ -499,13 +503,15 @@ class UsersClient:
499
503
 
500
504
  url = "/user/email/visibility"
501
505
 
502
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
503
-
504
- if not kwargs:
505
- kwargs = UNSET
506
+ headers = {
507
+ "Content-Type": "application/json",
508
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
509
+ **(headers or {}),
510
+ }
506
511
 
507
512
  json = kwargs if data is UNSET else data
508
- json = type_validate_python(UserEmailVisibilityPatchBody, json)
513
+ if self._github.config.rest_api_validate_body:
514
+ json = type_validate_python(UserEmailVisibilityPatchBody, json)
509
515
  json = model_dump(json) if isinstance(json, BaseModel) else json
510
516
 
511
517
  return self._github.request(
@@ -559,13 +565,15 @@ class UsersClient:
559
565
 
560
566
  url = "/user/email/visibility"
561
567
 
562
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
563
-
564
- if not kwargs:
565
- kwargs = UNSET
568
+ headers = {
569
+ "Content-Type": "application/json",
570
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
571
+ **(headers or {}),
572
+ }
566
573
 
567
574
  json = kwargs if data is UNSET else data
568
- json = type_validate_python(UserEmailVisibilityPatchBody, json)
575
+ if self._github.config.rest_api_validate_body:
576
+ json = type_validate_python(UserEmailVisibilityPatchBody, json)
569
577
  json = model_dump(json) if isinstance(json, BaseModel) else json
570
578
 
571
579
  return await self._github.arequest(
@@ -691,20 +699,22 @@ class UsersClient:
691
699
 
692
700
  url = "/user/emails"
693
701
 
694
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
695
-
696
- if not kwargs:
697
- kwargs = UNSET
702
+ headers = {
703
+ "Content-Type": "application/json",
704
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
705
+ **(headers or {}),
706
+ }
698
707
 
699
708
  json = kwargs if data is UNSET else data
700
- json = type_validate_python(
701
- Union[
702
- UserEmailsPostBodyOneof0,
703
- Annotated[List[str], Field(min_length=1 if PYDANTIC_V2 else None)],
704
- str,
705
- ],
706
- json,
707
- )
709
+ if self._github.config.rest_api_validate_body:
710
+ json = type_validate_python(
711
+ Union[
712
+ UserEmailsPostBodyOneof0,
713
+ Annotated[List[str], Field(min_length=1 if PYDANTIC_V2 else None)],
714
+ str,
715
+ ],
716
+ json,
717
+ )
708
718
  json = model_dump(json) if isinstance(json, BaseModel) else json
709
719
 
710
720
  return self._github.request(
@@ -760,20 +770,22 @@ class UsersClient:
760
770
 
761
771
  url = "/user/emails"
762
772
 
763
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
764
-
765
- if not kwargs:
766
- kwargs = UNSET
773
+ headers = {
774
+ "Content-Type": "application/json",
775
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
776
+ **(headers or {}),
777
+ }
767
778
 
768
779
  json = kwargs if data is UNSET else data
769
- json = type_validate_python(
770
- Union[
771
- UserEmailsPostBodyOneof0,
772
- Annotated[List[str], Field(min_length=1 if PYDANTIC_V2 else None)],
773
- str,
774
- ],
775
- json,
776
- )
780
+ if self._github.config.rest_api_validate_body:
781
+ json = type_validate_python(
782
+ Union[
783
+ UserEmailsPostBodyOneof0,
784
+ Annotated[List[str], Field(min_length=1 if PYDANTIC_V2 else None)],
785
+ str,
786
+ ],
787
+ json,
788
+ )
777
789
  json = model_dump(json) if isinstance(json, BaseModel) else json
778
790
 
779
791
  return await self._github.arequest(
@@ -824,20 +836,22 @@ class UsersClient:
824
836
 
825
837
  url = "/user/emails"
826
838
 
827
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
828
-
829
- if not kwargs:
830
- kwargs = UNSET
839
+ headers = {
840
+ "Content-Type": "application/json",
841
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
842
+ **(headers or {}),
843
+ }
831
844
 
832
845
  json = kwargs if data is UNSET else data
833
- json = type_validate_python(
834
- Union[
835
- UserEmailsDeleteBodyOneof0,
836
- Annotated[List[str], Field(min_length=1 if PYDANTIC_V2 else None)],
837
- str,
838
- ],
839
- json,
840
- )
846
+ if self._github.config.rest_api_validate_body:
847
+ json = type_validate_python(
848
+ Union[
849
+ UserEmailsDeleteBodyOneof0,
850
+ Annotated[List[str], Field(min_length=1 if PYDANTIC_V2 else None)],
851
+ str,
852
+ ],
853
+ json,
854
+ )
841
855
  json = model_dump(json) if isinstance(json, BaseModel) else json
842
856
 
843
857
  return self._github.request(
@@ -887,20 +901,22 @@ class UsersClient:
887
901
 
888
902
  url = "/user/emails"
889
903
 
890
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
891
-
892
- if not kwargs:
893
- kwargs = UNSET
904
+ headers = {
905
+ "Content-Type": "application/json",
906
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
907
+ **(headers or {}),
908
+ }
894
909
 
895
910
  json = kwargs if data is UNSET else data
896
- json = type_validate_python(
897
- Union[
898
- UserEmailsDeleteBodyOneof0,
899
- Annotated[List[str], Field(min_length=1 if PYDANTIC_V2 else None)],
900
- str,
901
- ],
902
- json,
903
- )
911
+ if self._github.config.rest_api_validate_body:
912
+ json = type_validate_python(
913
+ Union[
914
+ UserEmailsDeleteBodyOneof0,
915
+ Annotated[List[str], Field(min_length=1 if PYDANTIC_V2 else None)],
916
+ str,
917
+ ],
918
+ json,
919
+ )
904
920
  json = model_dump(json) if isinstance(json, BaseModel) else json
905
921
 
906
922
  return await self._github.arequest(
@@ -1300,13 +1316,15 @@ class UsersClient:
1300
1316
 
1301
1317
  url = "/user/gpg_keys"
1302
1318
 
1303
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
1304
-
1305
- if not kwargs:
1306
- kwargs = UNSET
1319
+ headers = {
1320
+ "Content-Type": "application/json",
1321
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
1322
+ **(headers or {}),
1323
+ }
1307
1324
 
1308
1325
  json = kwargs if data is UNSET else data
1309
- json = type_validate_python(UserGpgKeysPostBody, json)
1326
+ if self._github.config.rest_api_validate_body:
1327
+ json = type_validate_python(UserGpgKeysPostBody, json)
1310
1328
  json = model_dump(json) if isinstance(json, BaseModel) else json
1311
1329
 
1312
1330
  return self._github.request(
@@ -1351,13 +1369,15 @@ class UsersClient:
1351
1369
 
1352
1370
  url = "/user/gpg_keys"
1353
1371
 
1354
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
1355
-
1356
- if not kwargs:
1357
- kwargs = UNSET
1372
+ headers = {
1373
+ "Content-Type": "application/json",
1374
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
1375
+ **(headers or {}),
1376
+ }
1358
1377
 
1359
1378
  json = kwargs if data is UNSET else data
1360
- json = type_validate_python(UserGpgKeysPostBody, json)
1379
+ if self._github.config.rest_api_validate_body:
1380
+ json = type_validate_python(UserGpgKeysPostBody, json)
1361
1381
  json = model_dump(json) if isinstance(json, BaseModel) else json
1362
1382
 
1363
1383
  return await self._github.arequest(
@@ -1576,13 +1596,15 @@ class UsersClient:
1576
1596
 
1577
1597
  url = "/user/keys"
1578
1598
 
1579
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
1580
-
1581
- if not kwargs:
1582
- kwargs = UNSET
1599
+ headers = {
1600
+ "Content-Type": "application/json",
1601
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
1602
+ **(headers or {}),
1603
+ }
1583
1604
 
1584
1605
  json = kwargs if data is UNSET else data
1585
- json = type_validate_python(UserKeysPostBody, json)
1606
+ if self._github.config.rest_api_validate_body:
1607
+ json = type_validate_python(UserKeysPostBody, json)
1586
1608
  json = model_dump(json) if isinstance(json, BaseModel) else json
1587
1609
 
1588
1610
  return self._github.request(
@@ -1627,13 +1649,15 @@ class UsersClient:
1627
1649
 
1628
1650
  url = "/user/keys"
1629
1651
 
1630
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
1631
-
1632
- if not kwargs:
1633
- kwargs = UNSET
1652
+ headers = {
1653
+ "Content-Type": "application/json",
1654
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
1655
+ **(headers or {}),
1656
+ }
1634
1657
 
1635
1658
  json = kwargs if data is UNSET else data
1636
- json = type_validate_python(UserKeysPostBody, json)
1659
+ if self._github.config.rest_api_validate_body:
1660
+ json = type_validate_python(UserKeysPostBody, json)
1637
1661
  json = model_dump(json) if isinstance(json, BaseModel) else json
1638
1662
 
1639
1663
  return await self._github.arequest(
@@ -1929,13 +1953,15 @@ class UsersClient:
1929
1953
 
1930
1954
  url = "/user/social_accounts"
1931
1955
 
1932
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
1933
-
1934
- if not kwargs:
1935
- kwargs = UNSET
1956
+ headers = {
1957
+ "Content-Type": "application/json",
1958
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
1959
+ **(headers or {}),
1960
+ }
1936
1961
 
1937
1962
  json = kwargs if data is UNSET else data
1938
- json = type_validate_python(UserSocialAccountsPostBody, json)
1963
+ if self._github.config.rest_api_validate_body:
1964
+ json = type_validate_python(UserSocialAccountsPostBody, json)
1939
1965
  json = model_dump(json) if isinstance(json, BaseModel) else json
1940
1966
 
1941
1967
  return self._github.request(
@@ -1989,13 +2015,15 @@ class UsersClient:
1989
2015
 
1990
2016
  url = "/user/social_accounts"
1991
2017
 
1992
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
1993
-
1994
- if not kwargs:
1995
- kwargs = UNSET
2018
+ headers = {
2019
+ "Content-Type": "application/json",
2020
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
2021
+ **(headers or {}),
2022
+ }
1996
2023
 
1997
2024
  json = kwargs if data is UNSET else data
1998
- json = type_validate_python(UserSocialAccountsPostBody, json)
2025
+ if self._github.config.rest_api_validate_body:
2026
+ json = type_validate_python(UserSocialAccountsPostBody, json)
1999
2027
  json = model_dump(json) if isinstance(json, BaseModel) else json
2000
2028
 
2001
2029
  return await self._github.arequest(
@@ -2042,13 +2070,15 @@ class UsersClient:
2042
2070
 
2043
2071
  url = "/user/social_accounts"
2044
2072
 
2045
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
2046
-
2047
- if not kwargs:
2048
- kwargs = UNSET
2073
+ headers = {
2074
+ "Content-Type": "application/json",
2075
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
2076
+ **(headers or {}),
2077
+ }
2049
2078
 
2050
2079
  json = kwargs if data is UNSET else data
2051
- json = type_validate_python(UserSocialAccountsDeleteBody, json)
2080
+ if self._github.config.rest_api_validate_body:
2081
+ json = type_validate_python(UserSocialAccountsDeleteBody, json)
2052
2082
  json = model_dump(json) if isinstance(json, BaseModel) else json
2053
2083
 
2054
2084
  return self._github.request(
@@ -2094,13 +2124,15 @@ class UsersClient:
2094
2124
 
2095
2125
  url = "/user/social_accounts"
2096
2126
 
2097
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
2098
-
2099
- if not kwargs:
2100
- kwargs = UNSET
2127
+ headers = {
2128
+ "Content-Type": "application/json",
2129
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
2130
+ **(headers or {}),
2131
+ }
2101
2132
 
2102
2133
  json = kwargs if data is UNSET else data
2103
- json = type_validate_python(UserSocialAccountsDeleteBody, json)
2134
+ if self._github.config.rest_api_validate_body:
2135
+ json = type_validate_python(UserSocialAccountsDeleteBody, json)
2104
2136
  json = model_dump(json) if isinstance(json, BaseModel) else json
2105
2137
 
2106
2138
  return await self._github.arequest(
@@ -2222,13 +2254,15 @@ class UsersClient:
2222
2254
 
2223
2255
  url = "/user/ssh_signing_keys"
2224
2256
 
2225
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
2226
-
2227
- if not kwargs:
2228
- kwargs = UNSET
2257
+ headers = {
2258
+ "Content-Type": "application/json",
2259
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
2260
+ **(headers or {}),
2261
+ }
2229
2262
 
2230
2263
  json = kwargs if data is UNSET else data
2231
- json = type_validate_python(UserSshSigningKeysPostBody, json)
2264
+ if self._github.config.rest_api_validate_body:
2265
+ json = type_validate_python(UserSshSigningKeysPostBody, json)
2232
2266
  json = model_dump(json) if isinstance(json, BaseModel) else json
2233
2267
 
2234
2268
  return self._github.request(
@@ -2281,13 +2315,15 @@ class UsersClient:
2281
2315
 
2282
2316
  url = "/user/ssh_signing_keys"
2283
2317
 
2284
- headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}
2285
-
2286
- if not kwargs:
2287
- kwargs = UNSET
2318
+ headers = {
2319
+ "Content-Type": "application/json",
2320
+ "X-GitHub-Api-Version": self._REST_API_VERSION,
2321
+ **(headers or {}),
2322
+ }
2288
2323
 
2289
2324
  json = kwargs if data is UNSET else data
2290
- json = type_validate_python(UserSshSigningKeysPostBody, json)
2325
+ if self._github.config.rest_api_validate_body:
2326
+ json = type_validate_python(UserSshSigningKeysPostBody, json)
2291
2327
  json = model_dump(json) if isinstance(json, BaseModel) else json
2292
2328
 
2293
2329
  return await self._github.arequest(
@@ -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
  from typing_extensions import TypedDict, NotRequired
15
15
 
@@ -33,6 +33,7 @@ class CopilotSeatDetailsType(TypedDict):
33
33
  last_activity_editor: NotRequired[Union[str, None]]
34
34
  created_at: datetime
35
35
  updated_at: NotRequired[datetime]
36
+ plan_type: NotRequired[Literal["business", "enterprise", "unknown"]]
36
37
 
37
38
 
38
39
  class EnterpriseTeamType(TypedDict):
@@ -51,7 +51,6 @@ class OrganizationFullType(TypedDict):
51
51
  owned_private_repos: NotRequired[int]
52
52
  private_gists: NotRequired[Union[int, None]]
53
53
  disk_usage: NotRequired[Union[int, None]]
54
- collaborators: NotRequired[Union[int, None]]
55
54
  billing_email: NotRequired[Union[str, None]]
56
55
  plan: NotRequired[OrganizationFullPropPlanType]
57
56
  default_repository_permission: NotRequired[Union[str, None]]
@@ -28,6 +28,7 @@ class CopilotOrganizationDetailsType(TypedDict):
28
28
  seat_management_setting: Literal[
29
29
  "assign_all", "assign_selected", "disabled", "unconfigured"
30
30
  ]
31
+ plan_type: NotRequired[Literal["business", "enterprise", "unknown"]]
31
32
 
32
33
 
33
34
  class CopilotSeatBreakdownType(TypedDict):
@@ -26,7 +26,9 @@ class ReposOwnerRepoCheckRunsPostBodyOneof1Type(TypedDict):
26
26
  head_sha: str
27
27
  details_url: NotRequired[str]
28
28
  external_id: NotRequired[str]
29
- status: NotRequired[Literal["queued", "in_progress"]]
29
+ status: NotRequired[
30
+ Literal["queued", "in_progress", "waiting", "requested", "pending"]
31
+ ]
30
32
  started_at: NotRequired[datetime]
31
33
  conclusion: NotRequired[
32
34
  Literal[
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: GitHubKit
3
- Version: 0.11.12
3
+ Version: 0.11.14
4
4
  Summary: GitHub SDK for Python
5
5
  Home-page: https://github.com/yanyongyu/githubkit
6
6
  License: MIT
@@ -15,6 +15,7 @@ Classifier: Programming Language :: Python :: 3.9
15
15
  Classifier: Programming Language :: Python :: 3.10
16
16
  Classifier: Programming Language :: Python :: 3.11
17
17
  Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
18
19
  Provides-Extra: all
19
20
  Provides-Extra: auth
20
21
  Provides-Extra: auth-app
@@ -30,7 +31,7 @@ Project-URL: Documentation, https://github.com/yanyongyu/githubkit
30
31
  Project-URL: Repository, https://github.com/yanyongyu/githubkit
31
32
  Description-Content-Type: text/markdown
32
33
 
33
- <!-- markdownlint-disable MD033 MD041 -->
34
+ <!-- markdownlint-disable MD041 -->
34
35
  <div align="center">
35
36
 
36
37
  [![githubkit](https://socialify.git.ci/yanyongyu/githubkit/image?description=1&descriptionEditable=%E2%9C%A8%20GitHub%20SDK%20for%20Python%20%E2%9C%A8&font=Bitter&language=1&pattern=Circuit%20Board&theme=Light)](https://github.com/yanyongyu/githubkit)