GitHubKit 0.11.13__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_0088.py +0 -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 +84 -64
- 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 +1020 -766
- 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_0088.py +0 -1
- githubkit/versions/v2022_11_28/models/group_0060.py +0 -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 +84 -64
- 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 +1020 -766
- 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_0060.py +0 -1
- {githubkit-0.11.13.dist-info → githubkit-0.11.14.dist-info}/METADATA +2 -1
- {githubkit-0.11.13.dist-info → githubkit-0.11.14.dist-info}/RECORD +66 -66
- {githubkit-0.11.13.dist-info → githubkit-0.11.14.dist-info}/WHEEL +1 -1
- {githubkit-0.11.13.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 = {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
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
|
-
|
|
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 = {
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
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
|
-
|
|
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 = {
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
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
|
-
|
|
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 = {
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
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
|
-
|
|
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 = {
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
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
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
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 = {
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
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
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
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 = {
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
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
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
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 = {
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
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
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
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 = {
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
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
|
-
|
|
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 = {
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
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
|
-
|
|
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 = {
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
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
|
-
|
|
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 = {
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
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
|
-
|
|
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 = {
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
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
|
-
|
|
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 = {
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
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
|
-
|
|
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 = {
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
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
|
-
|
|
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 = {
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
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
|
-
|
|
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 = {
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
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
|
-
|
|
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 = {
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
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
|
-
|
|
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(
|
|
@@ -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]]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: GitHubKit
|
|
3
|
-
Version: 0.11.
|
|
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
|