GitHubKit 0.11.9__py3-none-any.whl → 0.11.10__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 (125) hide show
  1. githubkit/versions/ghec_v2022_11_28/models/group_0040.py +12 -0
  2. githubkit/versions/ghec_v2022_11_28/models/group_0090.py +6 -0
  3. githubkit/versions/ghec_v2022_11_28/models/group_0121.py +3 -2
  4. githubkit/versions/ghec_v2022_11_28/models/group_0138.py +0 -6
  5. githubkit/versions/ghec_v2022_11_28/models/group_0141.py +0 -3
  6. githubkit/versions/ghec_v2022_11_28/models/group_0165.py +0 -3
  7. githubkit/versions/ghec_v2022_11_28/models/group_0166.py +1 -2
  8. githubkit/versions/ghec_v2022_11_28/models/group_0226.py +1 -1
  9. githubkit/versions/ghec_v2022_11_28/models/group_0390.py +10 -4
  10. githubkit/versions/ghec_v2022_11_28/models/group_0825.py +3 -3
  11. githubkit/versions/ghec_v2022_11_28/models/group_0828.py +2 -2
  12. githubkit/versions/ghec_v2022_11_28/models/group_0829.py +3 -3
  13. githubkit/versions/ghec_v2022_11_28/models/group_0863.py +3 -3
  14. githubkit/versions/ghec_v2022_11_28/models/group_0864.py +2 -2
  15. githubkit/versions/ghec_v2022_11_28/models/group_0865.py +3 -3
  16. githubkit/versions/ghec_v2022_11_28/models/group_0876.py +6 -0
  17. githubkit/versions/ghec_v2022_11_28/models/group_0878.py +6 -0
  18. githubkit/versions/ghec_v2022_11_28/models/group_0883.py +2 -2
  19. githubkit/versions/ghec_v2022_11_28/models/group_0884.py +2 -2
  20. githubkit/versions/ghec_v2022_11_28/models/group_0885.py +2 -2
  21. githubkit/versions/ghec_v2022_11_28/models/group_0891.py +2 -2
  22. githubkit/versions/ghec_v2022_11_28/models/group_0893.py +2 -2
  23. githubkit/versions/ghec_v2022_11_28/models/group_0895.py +2 -2
  24. githubkit/versions/ghec_v2022_11_28/models/group_0897.py +2 -2
  25. githubkit/versions/ghec_v2022_11_28/models/group_0916.py +3 -3
  26. githubkit/versions/ghec_v2022_11_28/models/group_0918.py +3 -3
  27. githubkit/versions/ghec_v2022_11_28/models/group_0921.py +3 -3
  28. githubkit/versions/ghec_v2022_11_28/models/group_0922.py +3 -2
  29. githubkit/versions/ghec_v2022_11_28/models/group_0923.py +3 -3
  30. githubkit/versions/ghec_v2022_11_28/models/group_0925.py +1 -2
  31. githubkit/versions/ghec_v2022_11_28/models/group_0926.py +1 -2
  32. githubkit/versions/ghec_v2022_11_28/models/group_0968.py +3 -3
  33. githubkit/versions/ghec_v2022_11_28/models/group_0969.py +2 -2
  34. githubkit/versions/ghec_v2022_11_28/models/group_0970.py +3 -3
  35. githubkit/versions/ghec_v2022_11_28/models/group_1006.py +2 -2
  36. githubkit/versions/ghec_v2022_11_28/models/group_1007.py +2 -2
  37. githubkit/versions/ghec_v2022_11_28/models/group_1008.py +2 -2
  38. githubkit/versions/ghec_v2022_11_28/models/group_1009.py +2 -2
  39. githubkit/versions/ghec_v2022_11_28/models/group_1010.py +2 -2
  40. githubkit/versions/ghec_v2022_11_28/models/group_1011.py +2 -2
  41. githubkit/versions/ghec_v2022_11_28/models/group_1016.py +3 -3
  42. githubkit/versions/ghec_v2022_11_28/models/group_1017.py +3 -3
  43. githubkit/versions/ghec_v2022_11_28/models/group_1018.py +3 -3
  44. githubkit/versions/ghec_v2022_11_28/models/group_1074.py +2 -2
  45. githubkit/versions/ghec_v2022_11_28/models/group_1075.py +2 -2
  46. githubkit/versions/ghec_v2022_11_28/models/group_1077.py +2 -2
  47. githubkit/versions/ghec_v2022_11_28/models/group_1078.py +2 -2
  48. githubkit/versions/ghec_v2022_11_28/models/group_1128.py +1 -2
  49. githubkit/versions/ghec_v2022_11_28/models/group_1129.py +1 -2
  50. githubkit/versions/ghec_v2022_11_28/models/group_1138.py +2 -2
  51. githubkit/versions/ghec_v2022_11_28/models/group_1139.py +2 -2
  52. githubkit/versions/ghec_v2022_11_28/models/group_1140.py +2 -2
  53. githubkit/versions/ghec_v2022_11_28/models/group_1165.py +2 -2
  54. githubkit/versions/ghec_v2022_11_28/models/group_1166.py +2 -2
  55. githubkit/versions/ghec_v2022_11_28/rest/code_security.py +12 -0
  56. githubkit/versions/ghec_v2022_11_28/rest/issues.py +16 -8
  57. githubkit/versions/ghec_v2022_11_28/rest/users.py +16 -4
  58. githubkit/versions/ghec_v2022_11_28/types/group_0040.py +3 -0
  59. githubkit/versions/ghec_v2022_11_28/types/group_0090.py +3 -0
  60. githubkit/versions/ghec_v2022_11_28/types/group_0138.py +0 -6
  61. githubkit/versions/ghec_v2022_11_28/types/group_0141.py +0 -3
  62. githubkit/versions/ghec_v2022_11_28/types/group_0165.py +0 -3
  63. githubkit/versions/ghec_v2022_11_28/types/group_0876.py +3 -0
  64. githubkit/versions/ghec_v2022_11_28/types/group_0878.py +3 -0
  65. githubkit/versions/v2022_11_28/models/group_0070.py +12 -0
  66. githubkit/versions/v2022_11_28/models/group_0074.py +6 -0
  67. githubkit/versions/v2022_11_28/models/group_0096.py +3 -2
  68. githubkit/versions/v2022_11_28/models/group_0113.py +0 -6
  69. githubkit/versions/v2022_11_28/models/group_0116.py +0 -3
  70. githubkit/versions/v2022_11_28/models/group_0140.py +0 -3
  71. githubkit/versions/v2022_11_28/models/group_0141.py +1 -2
  72. githubkit/versions/v2022_11_28/models/group_0203.py +1 -1
  73. githubkit/versions/v2022_11_28/models/group_0789.py +3 -3
  74. githubkit/versions/v2022_11_28/models/group_0792.py +2 -2
  75. githubkit/versions/v2022_11_28/models/group_0793.py +3 -3
  76. githubkit/versions/v2022_11_28/models/group_0805.py +6 -0
  77. githubkit/versions/v2022_11_28/models/group_0807.py +6 -0
  78. githubkit/versions/v2022_11_28/models/group_0812.py +2 -2
  79. githubkit/versions/v2022_11_28/models/group_0813.py +2 -2
  80. githubkit/versions/v2022_11_28/models/group_0814.py +2 -2
  81. githubkit/versions/v2022_11_28/models/group_0820.py +2 -2
  82. githubkit/versions/v2022_11_28/models/group_0822.py +2 -2
  83. githubkit/versions/v2022_11_28/models/group_0824.py +2 -2
  84. githubkit/versions/v2022_11_28/models/group_0826.py +2 -2
  85. githubkit/versions/v2022_11_28/models/group_0844.py +3 -3
  86. githubkit/versions/v2022_11_28/models/group_0846.py +3 -3
  87. githubkit/versions/v2022_11_28/models/group_0849.py +3 -3
  88. githubkit/versions/v2022_11_28/models/group_0850.py +3 -2
  89. githubkit/versions/v2022_11_28/models/group_0851.py +3 -3
  90. githubkit/versions/v2022_11_28/models/group_0853.py +1 -2
  91. githubkit/versions/v2022_11_28/models/group_0854.py +1 -2
  92. githubkit/versions/v2022_11_28/models/group_0894.py +3 -3
  93. githubkit/versions/v2022_11_28/models/group_0895.py +2 -2
  94. githubkit/versions/v2022_11_28/models/group_0896.py +3 -3
  95. githubkit/versions/v2022_11_28/models/group_0932.py +2 -2
  96. githubkit/versions/v2022_11_28/models/group_0933.py +2 -2
  97. githubkit/versions/v2022_11_28/models/group_0934.py +2 -2
  98. githubkit/versions/v2022_11_28/models/group_0935.py +2 -2
  99. githubkit/versions/v2022_11_28/models/group_0936.py +2 -2
  100. githubkit/versions/v2022_11_28/models/group_0937.py +2 -2
  101. githubkit/versions/v2022_11_28/models/group_0942.py +3 -3
  102. githubkit/versions/v2022_11_28/models/group_0943.py +3 -3
  103. githubkit/versions/v2022_11_28/models/group_0944.py +3 -3
  104. githubkit/versions/v2022_11_28/models/group_1000.py +2 -2
  105. githubkit/versions/v2022_11_28/models/group_1001.py +2 -2
  106. githubkit/versions/v2022_11_28/models/group_1003.py +2 -2
  107. githubkit/versions/v2022_11_28/models/group_1004.py +2 -2
  108. githubkit/versions/v2022_11_28/models/group_1054.py +1 -2
  109. githubkit/versions/v2022_11_28/models/group_1055.py +1 -2
  110. githubkit/versions/v2022_11_28/models/group_1087.py +2 -2
  111. githubkit/versions/v2022_11_28/models/group_1088.py +2 -2
  112. githubkit/versions/v2022_11_28/rest/code_security.py +12 -0
  113. githubkit/versions/v2022_11_28/rest/issues.py +16 -8
  114. githubkit/versions/v2022_11_28/rest/users.py +16 -4
  115. githubkit/versions/v2022_11_28/types/group_0070.py +3 -0
  116. githubkit/versions/v2022_11_28/types/group_0074.py +3 -0
  117. githubkit/versions/v2022_11_28/types/group_0113.py +0 -6
  118. githubkit/versions/v2022_11_28/types/group_0116.py +0 -3
  119. githubkit/versions/v2022_11_28/types/group_0140.py +0 -3
  120. githubkit/versions/v2022_11_28/types/group_0805.py +3 -0
  121. githubkit/versions/v2022_11_28/types/group_0807.py +3 -0
  122. {githubkit-0.11.9.dist-info → githubkit-0.11.10.dist-info}/METADATA +1 -1
  123. {githubkit-0.11.9.dist-info → githubkit-0.11.10.dist-info}/RECORD +125 -125
  124. {githubkit-0.11.9.dist-info → githubkit-0.11.10.dist-info}/LICENSE +0 -0
  125. {githubkit-0.11.9.dist-info → githubkit-0.11.10.dist-info}/WHEEL +0 -0
@@ -15,7 +15,7 @@ from pydantic import Field
15
15
 
16
16
  from githubkit.utils import UNSET
17
17
  from githubkit.typing import Missing
18
- from githubkit.compat import GitHubModel, model_rebuild
18
+ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild
19
19
 
20
20
 
21
21
  class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0(GitHubModel):
@@ -31,12 +31,12 @@ class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0(GitHubModel)
31
31
  description="List of repository names (in the form `owner/repo-name`) to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required."
32
32
  )
33
33
  repository_lists: Missing[List[str]] = Field(
34
- max_length=1,
34
+ max_length=1 if PYDANTIC_V2 else None,
35
35
  default=UNSET,
36
36
  description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.",
37
37
  )
38
38
  repository_owners: Missing[List[str]] = Field(
39
- max_length=1,
39
+ max_length=1 if PYDANTIC_V2 else None,
40
40
  default=UNSET,
41
41
  description="List of organization or user names whose repositories the query should be run against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.",
42
42
  )
@@ -15,7 +15,7 @@ from pydantic import Field
15
15
 
16
16
  from githubkit.utils import UNSET
17
17
  from githubkit.typing import Missing
18
- from githubkit.compat import GitHubModel, model_rebuild
18
+ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild
19
19
 
20
20
 
21
21
  class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1(GitHubModel):
@@ -32,11 +32,11 @@ class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1(GitHubModel)
32
32
  description="List of repository names (in the form `owner/repo-name`) to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.",
33
33
  )
34
34
  repository_lists: List[str] = Field(
35
- max_length=1,
35
+ max_length=1 if PYDANTIC_V2 else None,
36
36
  description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.",
37
37
  )
38
38
  repository_owners: Missing[List[str]] = Field(
39
- max_length=1,
39
+ max_length=1 if PYDANTIC_V2 else None,
40
40
  default=UNSET,
41
41
  description="List of organization or user names whose repositories the query should be run against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.",
42
42
  )
@@ -15,7 +15,7 @@ from pydantic import Field
15
15
 
16
16
  from githubkit.utils import UNSET
17
17
  from githubkit.typing import Missing
18
- from githubkit.compat import GitHubModel, model_rebuild
18
+ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild
19
19
 
20
20
 
21
21
  class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2(GitHubModel):
@@ -32,12 +32,12 @@ class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2(GitHubModel)
32
32
  description="List of repository names (in the form `owner/repo-name`) to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.",
33
33
  )
34
34
  repository_lists: Missing[List[str]] = Field(
35
- max_length=1,
35
+ max_length=1 if PYDANTIC_V2 else None,
36
36
  default=UNSET,
37
37
  description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.",
38
38
  )
39
39
  repository_owners: List[str] = Field(
40
- max_length=1,
40
+ max_length=1 if PYDANTIC_V2 else None,
41
41
  description="List of organization or user names whose repositories the query should be run against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.",
42
42
  )
43
43
 
@@ -15,14 +15,14 @@ from pydantic import Field
15
15
 
16
16
  from githubkit.utils import UNSET
17
17
  from githubkit.typing import Missing
18
- from githubkit.compat import GitHubModel, model_rebuild
18
+ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild
19
19
 
20
20
 
21
21
  class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0(GitHubModel):
22
22
  """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0"""
23
23
 
24
24
  labels: Missing[List[str]] = Field(
25
- min_length=1,
25
+ min_length=1 if PYDANTIC_V2 else None,
26
26
  default=UNSET,
27
27
  description='The names of the labels to set for the issue. The labels you set replace any existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also add labels to the existing labels for an issue. For more information, see "[Add labels to an issue](https://docs.github.com/rest/issues/labels#add-labels-to-an-issue)."',
28
28
  )
@@ -15,7 +15,7 @@ from pydantic import Field
15
15
 
16
16
  from githubkit.utils import UNSET
17
17
  from githubkit.typing import Missing
18
- from githubkit.compat import GitHubModel, model_rebuild
18
+ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild
19
19
 
20
20
 
21
21
  class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2(GitHubModel):
@@ -23,7 +23,7 @@ class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2(GitHubModel):
23
23
 
24
24
  labels: Missing[
25
25
  List[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems]
26
- ] = Field(min_length=1, default=UNSET)
26
+ ] = Field(min_length=1 if PYDANTIC_V2 else None, default=UNSET)
27
27
 
28
28
 
29
29
  class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems(GitHubModel):
@@ -15,14 +15,14 @@ from pydantic import Field
15
15
 
16
16
  from githubkit.utils import UNSET
17
17
  from githubkit.typing import Missing
18
- from githubkit.compat import GitHubModel, model_rebuild
18
+ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild
19
19
 
20
20
 
21
21
  class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0(GitHubModel):
22
22
  """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0"""
23
23
 
24
24
  labels: Missing[List[str]] = Field(
25
- min_length=1,
25
+ min_length=1 if PYDANTIC_V2 else None,
26
26
  default=UNSET,
27
27
  description='The names of the labels to add to the issue\'s existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also replace all of the labels for an issue. For more information, see "[Set labels for an issue](https://docs.github.com/rest/issues/labels#set-labels-for-an-issue)."',
28
28
  )
@@ -15,7 +15,7 @@ from pydantic import Field
15
15
 
16
16
  from githubkit.utils import UNSET
17
17
  from githubkit.typing import Missing
18
- from githubkit.compat import GitHubModel, model_rebuild
18
+ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild
19
19
 
20
20
 
21
21
  class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2(GitHubModel):
@@ -23,7 +23,7 @@ class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2(GitHubModel):
23
23
 
24
24
  labels: Missing[
25
25
  List[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems]
26
- ] = Field(min_length=1, default=UNSET)
26
+ ] = Field(min_length=1 if PYDANTIC_V2 else None, default=UNSET)
27
27
 
28
28
 
29
29
  class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems(GitHubModel):
@@ -48,8 +48,7 @@ class ReposOwnerRepoRulesetsPostBody(GitHubModel):
48
48
 
49
49
  name: str = Field(description="The name of the ruleset.")
50
50
  target: Missing[Literal["branch", "tag", "push"]] = Field(
51
- default=UNSET,
52
- description="The target of the ruleset\n\n> [!NOTE]\n> The `push` target is in beta and is subject to change.",
51
+ default=UNSET, description="The target of the ruleset"
53
52
  )
54
53
  enforcement: Literal["disabled", "active", "evaluate"] = Field(
55
54
  description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise)."
@@ -48,8 +48,7 @@ class ReposOwnerRepoRulesetsRulesetIdPutBody(GitHubModel):
48
48
 
49
49
  name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.")
50
50
  target: Missing[Literal["branch", "tag", "push"]] = Field(
51
- default=UNSET,
52
- description="The target of the ruleset\n\n> [!NOTE]\n> The `push` target is in beta and is subject to change.",
51
+ default=UNSET, description="The target of the ruleset"
53
52
  )
54
53
  enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field(
55
54
  default=UNSET,
@@ -13,7 +13,7 @@ from typing import List
13
13
 
14
14
  from pydantic import Field
15
15
 
16
- from githubkit.compat import GitHubModel, model_rebuild
16
+ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild
17
17
 
18
18
 
19
19
  class UserEmailsPostBodyOneof0(GitHubModel):
@@ -24,7 +24,7 @@ class UserEmailsPostBodyOneof0(GitHubModel):
24
24
  """
25
25
 
26
26
  emails: List[str] = Field(
27
- min_length=1,
27
+ min_length=1 if PYDANTIC_V2 else None,
28
28
  description="Adds one or more email addresses to your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key.",
29
29
  )
30
30
 
@@ -13,7 +13,7 @@ from typing import List
13
13
 
14
14
  from pydantic import Field
15
15
 
16
- from githubkit.compat import GitHubModel, model_rebuild
16
+ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild
17
17
 
18
18
 
19
19
  class UserEmailsDeleteBodyOneof0(GitHubModel):
@@ -29,7 +29,7 @@ class UserEmailsDeleteBodyOneof0(GitHubModel):
29
29
  """
30
30
 
31
31
  emails: List[str] = Field(
32
- min_length=1,
32
+ min_length=1 if PYDANTIC_V2 else None,
33
33
  description="Email addresses associated with the GitHub user account.",
34
34
  )
35
35
 
@@ -178,6 +178,9 @@ class CodeSecurityClient:
178
178
  secret_scanning_validity_checks: Missing[
179
179
  Literal["enabled", "disabled", "not_set"]
180
180
  ] = UNSET,
181
+ secret_scanning_non_provider_patterns: Missing[
182
+ Literal["enabled", "disabled", "not_set"]
183
+ ] = UNSET,
181
184
  private_vulnerability_reporting: Missing[
182
185
  Literal["enabled", "disabled", "not_set"]
183
186
  ] = UNSET,
@@ -258,6 +261,9 @@ class CodeSecurityClient:
258
261
  secret_scanning_validity_checks: Missing[
259
262
  Literal["enabled", "disabled", "not_set"]
260
263
  ] = UNSET,
264
+ secret_scanning_non_provider_patterns: Missing[
265
+ Literal["enabled", "disabled", "not_set"]
266
+ ] = UNSET,
261
267
  private_vulnerability_reporting: Missing[
262
268
  Literal["enabled", "disabled", "not_set"]
263
269
  ] = UNSET,
@@ -620,6 +626,9 @@ class CodeSecurityClient:
620
626
  secret_scanning_validity_checks: Missing[
621
627
  Literal["enabled", "disabled", "not_set"]
622
628
  ] = UNSET,
629
+ secret_scanning_non_provider_patterns: Missing[
630
+ Literal["enabled", "disabled", "not_set"]
631
+ ] = UNSET,
623
632
  private_vulnerability_reporting: Missing[
624
633
  Literal["enabled", "disabled", "not_set"]
625
634
  ] = UNSET,
@@ -707,6 +716,9 @@ class CodeSecurityClient:
707
716
  secret_scanning_validity_checks: Missing[
708
717
  Literal["enabled", "disabled", "not_set"]
709
718
  ] = UNSET,
719
+ secret_scanning_non_provider_patterns: Missing[
720
+ Literal["enabled", "disabled", "not_set"]
721
+ ] = UNSET,
710
722
  private_vulnerability_reporting: Missing[
711
723
  Literal["enabled", "disabled", "not_set"]
712
724
  ] = UNSET,
@@ -2163,6 +2163,8 @@ class IssuesClient:
2163
2163
 
2164
2164
  from typing import List, Union
2165
2165
 
2166
+ from githubkit.compat import PYDANTIC_V2
2167
+
2166
2168
  from ..models import (
2167
2169
  Label,
2168
2170
  BasicError,
@@ -2183,11 +2185,11 @@ class IssuesClient:
2183
2185
  json = type_validate_python(
2184
2186
  Union[
2185
2187
  ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0,
2186
- Annotated[List[str], Field(min_length=1)],
2188
+ Annotated[List[str], Field(min_length=1 if PYDANTIC_V2 else None)],
2187
2189
  ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2,
2188
2190
  Annotated[
2189
2191
  List[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items],
2190
- Field(min_length=1),
2192
+ Field(min_length=1 if PYDANTIC_V2 else None),
2191
2193
  ],
2192
2194
  str,
2193
2195
  ],
@@ -2275,6 +2277,8 @@ class IssuesClient:
2275
2277
 
2276
2278
  from typing import List, Union
2277
2279
 
2280
+ from githubkit.compat import PYDANTIC_V2
2281
+
2278
2282
  from ..models import (
2279
2283
  Label,
2280
2284
  BasicError,
@@ -2295,11 +2299,11 @@ class IssuesClient:
2295
2299
  json = type_validate_python(
2296
2300
  Union[
2297
2301
  ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0,
2298
- Annotated[List[str], Field(min_length=1)],
2302
+ Annotated[List[str], Field(min_length=1 if PYDANTIC_V2 else None)],
2299
2303
  ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2,
2300
2304
  Annotated[
2301
2305
  List[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items],
2302
- Field(min_length=1),
2306
+ Field(min_length=1 if PYDANTIC_V2 else None),
2303
2307
  ],
2304
2308
  str,
2305
2309
  ],
@@ -2387,6 +2391,8 @@ class IssuesClient:
2387
2391
 
2388
2392
  from typing import List, Union
2389
2393
 
2394
+ from githubkit.compat import PYDANTIC_V2
2395
+
2390
2396
  from ..models import (
2391
2397
  Label,
2392
2398
  BasicError,
@@ -2407,11 +2413,11 @@ class IssuesClient:
2407
2413
  json = type_validate_python(
2408
2414
  Union[
2409
2415
  ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0,
2410
- Annotated[List[str], Field(min_length=1)],
2416
+ Annotated[List[str], Field(min_length=1 if PYDANTIC_V2 else None)],
2411
2417
  ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2,
2412
2418
  Annotated[
2413
2419
  List[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items],
2414
- Field(min_length=1),
2420
+ Field(min_length=1 if PYDANTIC_V2 else None),
2415
2421
  ],
2416
2422
  str,
2417
2423
  ],
@@ -2499,6 +2505,8 @@ class IssuesClient:
2499
2505
 
2500
2506
  from typing import List, Union
2501
2507
 
2508
+ from githubkit.compat import PYDANTIC_V2
2509
+
2502
2510
  from ..models import (
2503
2511
  Label,
2504
2512
  BasicError,
@@ -2519,11 +2527,11 @@ class IssuesClient:
2519
2527
  json = type_validate_python(
2520
2528
  Union[
2521
2529
  ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0,
2522
- Annotated[List[str], Field(min_length=1)],
2530
+ Annotated[List[str], Field(min_length=1 if PYDANTIC_V2 else None)],
2523
2531
  ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2,
2524
2532
  Annotated[
2525
2533
  List[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items],
2526
- Field(min_length=1),
2534
+ Field(min_length=1 if PYDANTIC_V2 else None),
2527
2535
  ],
2528
2536
  str,
2529
2537
  ],
@@ -680,6 +680,8 @@ class UsersClient:
680
680
 
681
681
  from typing import List, Union
682
682
 
683
+ from githubkit.compat import PYDANTIC_V2
684
+
683
685
  from ..models import (
684
686
  Email,
685
687
  BasicError,
@@ -697,7 +699,9 @@ class UsersClient:
697
699
  json = kwargs if data is UNSET else data
698
700
  json = type_validate_python(
699
701
  Union[
700
- UserEmailsPostBodyOneof0, Annotated[List[str], Field(min_length=1)], str
702
+ UserEmailsPostBodyOneof0,
703
+ Annotated[List[str], Field(min_length=1 if PYDANTIC_V2 else None)],
704
+ str,
701
705
  ],
702
706
  json,
703
707
  )
@@ -745,6 +749,8 @@ class UsersClient:
745
749
 
746
750
  from typing import List, Union
747
751
 
752
+ from githubkit.compat import PYDANTIC_V2
753
+
748
754
  from ..models import (
749
755
  Email,
750
756
  BasicError,
@@ -762,7 +768,9 @@ class UsersClient:
762
768
  json = kwargs if data is UNSET else data
763
769
  json = type_validate_python(
764
770
  Union[
765
- UserEmailsPostBodyOneof0, Annotated[List[str], Field(min_length=1)], str
771
+ UserEmailsPostBodyOneof0,
772
+ Annotated[List[str], Field(min_length=1 if PYDANTIC_V2 else None)],
773
+ str,
766
774
  ],
767
775
  json,
768
776
  )
@@ -810,6 +818,8 @@ class UsersClient:
810
818
 
811
819
  from typing import List, Union
812
820
 
821
+ from githubkit.compat import PYDANTIC_V2
822
+
813
823
  from ..models import BasicError, ValidationError, UserEmailsDeleteBodyOneof0
814
824
 
815
825
  url = "/user/emails"
@@ -823,7 +833,7 @@ class UsersClient:
823
833
  json = type_validate_python(
824
834
  Union[
825
835
  UserEmailsDeleteBodyOneof0,
826
- Annotated[List[str], Field(min_length=1)],
836
+ Annotated[List[str], Field(min_length=1 if PYDANTIC_V2 else None)],
827
837
  str,
828
838
  ],
829
839
  json,
@@ -871,6 +881,8 @@ class UsersClient:
871
881
 
872
882
  from typing import List, Union
873
883
 
884
+ from githubkit.compat import PYDANTIC_V2
885
+
874
886
  from ..models import BasicError, ValidationError, UserEmailsDeleteBodyOneof0
875
887
 
876
888
  url = "/user/emails"
@@ -884,7 +896,7 @@ class UsersClient:
884
896
  json = type_validate_python(
885
897
  Union[
886
898
  UserEmailsDeleteBodyOneof0,
887
- Annotated[List[str], Field(min_length=1)],
899
+ Annotated[List[str], Field(min_length=1 if PYDANTIC_V2 else None)],
888
900
  str,
889
901
  ],
890
902
  json,
@@ -23,7 +23,10 @@ class CodeScanningAlertRuleSummaryType(TypedDict):
23
23
  Union[None, Literal["low", "medium", "high", "critical"]]
24
24
  ]
25
25
  description: NotRequired[str]
26
+ full_description: NotRequired[str]
26
27
  tags: NotRequired[Union[List[str], None]]
28
+ help_: NotRequired[Union[str, None]]
29
+ help_uri: NotRequired[Union[str, None]]
27
30
 
28
31
 
29
32
  __all__ = ("CodeScanningAlertRuleSummaryType",)
@@ -42,6 +42,9 @@ class CodeSecurityConfigurationType(TypedDict):
42
42
  secret_scanning_validity_checks: NotRequired[
43
43
  Literal["enabled", "disabled", "not_set"]
44
44
  ]
45
+ secret_scanning_non_provider_patterns: NotRequired[
46
+ Literal["enabled", "disabled", "not_set"]
47
+ ]
45
48
  private_vulnerability_reporting: NotRequired[
46
49
  Literal["enabled", "disabled", "not_set"]
47
50
  ]
@@ -52,9 +52,6 @@ class RepositoryRuleNonFastForwardType(TypedDict):
52
52
  class RepositoryRuleOneof15Type(TypedDict):
53
53
  """file_path_restriction
54
54
 
55
- > [!NOTE]
56
- > `file_path_restriction` is in beta and subject to change.
57
-
58
55
  Prevent commits that include changes in specified file paths from being pushed
59
56
  to the commit graph.
60
57
  """
@@ -72,9 +69,6 @@ class RepositoryRuleOneof15PropParametersType(TypedDict):
72
69
  class RepositoryRuleOneof17Type(TypedDict):
73
70
  """file_extension_restriction
74
71
 
75
- > [!NOTE]
76
- > `file_extension_restriction` is in beta and subject to change.
77
-
78
72
  Prevent commits that include files with specified file extensions from being
79
73
  pushed to the commit graph.
80
74
  """
@@ -25,9 +25,6 @@ class RepositoryRuleRequiredLinearHistoryType(TypedDict):
25
25
  class RepositoryRuleOneof16Type(TypedDict):
26
26
  """max_file_path_length
27
27
 
28
- > [!NOTE]
29
- > `max_file_path_length` is in beta and subject to change.
30
-
31
28
  Prevent commits that include file paths that exceed a specified character limit
32
29
  from being pushed to the commit graph.
33
30
  """
@@ -16,9 +16,6 @@ from typing_extensions import TypedDict, NotRequired
16
16
  class RepositoryRuleOneof18Type(TypedDict):
17
17
  """max_file_size
18
18
 
19
- > [!NOTE]
20
- > `max_file_size` is in beta and subject to change.
21
-
22
19
  Prevent commits that exceed a specified file size limit from being pushed to the
23
20
  commit.
24
21
  """
@@ -36,6 +36,9 @@ class OrgsOrgCodeSecurityConfigurationsPostBodyType(TypedDict):
36
36
  secret_scanning_validity_checks: NotRequired[
37
37
  Literal["enabled", "disabled", "not_set"]
38
38
  ]
39
+ secret_scanning_non_provider_patterns: NotRequired[
40
+ Literal["enabled", "disabled", "not_set"]
41
+ ]
39
42
  private_vulnerability_reporting: NotRequired[
40
43
  Literal["enabled", "disabled", "not_set"]
41
44
  ]
@@ -36,6 +36,9 @@ class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType(TypedDict):
36
36
  secret_scanning_validity_checks: NotRequired[
37
37
  Literal["enabled", "disabled", "not_set"]
38
38
  ]
39
+ secret_scanning_non_provider_patterns: NotRequired[
40
+ Literal["enabled", "disabled", "not_set"]
41
+ ]
39
42
  private_vulnerability_reporting: NotRequired[
40
43
  Literal["enabled", "disabled", "not_set"]
41
44
  ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: GitHubKit
3
- Version: 0.11.9
3
+ Version: 0.11.10
4
4
  Summary: GitHub SDK for Python
5
5
  Home-page: https://github.com/yanyongyu/githubkit
6
6
  License: MIT