githubkit 0.11.0a3__py3-none-any.whl → 0.11.0a4__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.
- githubkit/compat.py +14 -0
- githubkit/core.py +3 -3
- githubkit/typing.py +1 -1
- githubkit/utils.py +0 -15
- githubkit/versions/v2022_11_28/models/group_0002.py +2 -2
- githubkit/versions/v2022_11_28/models/group_0027.py +3 -5
- githubkit/versions/v2022_11_28/models/group_0041.py +1 -3
- githubkit/versions/v2022_11_28/models/group_0112.py +3 -2
- githubkit/versions/v2022_11_28/models/group_0127.py +1 -0
- githubkit/versions/v2022_11_28/models/group_0131.py +2 -2
- githubkit/versions/v2022_11_28/models/group_0169.py +1 -3
- githubkit/versions/v2022_11_28/models/group_0190.py +5 -4
- githubkit/versions/v2022_11_28/models/group_0225.py +2 -1
- githubkit/versions/v2022_11_28/models/group_0227.py +7 -4
- githubkit/versions/v2022_11_28/models/group_0228.py +2 -2
- githubkit/versions/v2022_11_28/models/group_0240.py +1 -3
- githubkit/versions/v2022_11_28/models/group_0313.py +5 -4
- githubkit/versions/v2022_11_28/models/group_0314.py +5 -4
- githubkit/versions/v2022_11_28/models/group_0315.py +4 -3
- githubkit/versions/v2022_11_28/models/group_0824.py +1 -3
- githubkit/versions/v2022_11_28/models/group_0825.py +1 -3
- githubkit/versions/v2022_11_28/models/group_0838.py +4 -2
- githubkit/versions/v2022_11_28/models/group_0841.py +3 -2
- githubkit/versions/v2022_11_28/models/group_0842.py +4 -2
- githubkit/versions/v2022_11_28/models/group_0845.py +2 -8
- githubkit/versions/v2022_11_28/models/group_0854.py +2 -1
- githubkit/versions/v2022_11_28/models/group_0855.py +3 -2
- githubkit/versions/v2022_11_28/models/group_0856.py +3 -2
- githubkit/versions/v2022_11_28/models/group_0858.py +2 -8
- githubkit/versions/v2022_11_28/models/group_0861.py +3 -2
- githubkit/versions/v2022_11_28/models/group_0863.py +3 -2
- githubkit/versions/v2022_11_28/models/group_0865.py +3 -2
- githubkit/versions/v2022_11_28/models/group_0867.py +3 -2
- githubkit/versions/v2022_11_28/models/group_0870.py +2 -8
- githubkit/versions/v2022_11_28/models/group_0887.py +3 -3
- githubkit/versions/v2022_11_28/models/group_0889.py +4 -2
- githubkit/versions/v2022_11_28/models/group_0892.py +5 -3
- githubkit/versions/v2022_11_28/models/group_0894.py +4 -2
- githubkit/versions/v2022_11_28/models/group_0913.py +3 -2
- githubkit/versions/v2022_11_28/models/group_0921.py +3 -2
- githubkit/versions/v2022_11_28/models/group_0937.py +4 -2
- githubkit/versions/v2022_11_28/models/group_0938.py +3 -2
- githubkit/versions/v2022_11_28/models/group_0939.py +4 -2
- githubkit/versions/v2022_11_28/models/group_0948.py +2 -8
- githubkit/versions/v2022_11_28/models/group_0972.py +16 -13
- githubkit/versions/v2022_11_28/models/group_0973.py +2 -5
- githubkit/versions/v2022_11_28/models/group_0974.py +2 -5
- githubkit/versions/v2022_11_28/models/group_0975.py +14 -17
- githubkit/versions/v2022_11_28/models/group_0976.py +2 -4
- githubkit/versions/v2022_11_28/models/group_0977.py +2 -4
- githubkit/versions/v2022_11_28/models/group_0982.py +8 -6
- githubkit/versions/v2022_11_28/models/group_0989.py +2 -8
- githubkit/versions/v2022_11_28/models/group_0997.py +2 -1
- githubkit/versions/v2022_11_28/models/group_0999.py +2 -8
- githubkit/versions/v2022_11_28/models/group_1004.py +4 -2
- githubkit/versions/v2022_11_28/models/group_1032.py +2 -1
- githubkit/versions/v2022_11_28/models/group_1033.py +2 -5
- githubkit/versions/v2022_11_28/models/group_1035.py +2 -1
- githubkit/versions/v2022_11_28/models/group_1036.py +2 -5
- githubkit/versions/v2022_11_28/models/group_1094.py +3 -7
- githubkit/versions/v2022_11_28/models/group_1114.py +2 -8
- githubkit/versions/v2022_11_28/models/group_1127.py +4 -3
- githubkit/versions/v2022_11_28/models/group_1134.py +3 -7
- githubkit/versions/v2022_11_28/rest/repos.py +2 -0
- githubkit/versions/v2022_11_28/types/group_0127.py +1 -0
- {githubkit-0.11.0a3.dist-info → githubkit-0.11.0a4.dist-info}/METADATA +22 -6
- {githubkit-0.11.0a3.dist-info → githubkit-0.11.0a4.dist-info}/RECORD +69 -69
- {githubkit-0.11.0a3.dist-info → githubkit-0.11.0a4.dist-info}/LICENSE +0 -0
- {githubkit-0.11.0a3.dist-info → githubkit-0.11.0a4.dist-info}/WHEEL +0 -0
githubkit/compat.py
CHANGED
|
@@ -31,6 +31,7 @@ if TYPE_CHECKING:
|
|
|
31
31
|
|
|
32
32
|
if PYDANTIC_V2: # pragma: pydantic-v2
|
|
33
33
|
from pydantic_core import CoreSchema, core_schema
|
|
34
|
+
from pydantic_core import to_jsonable_python as to_jsonable_python
|
|
34
35
|
from pydantic import (
|
|
35
36
|
BaseModel,
|
|
36
37
|
ConfigDict,
|
|
@@ -81,6 +82,7 @@ if PYDANTIC_V2: # pragma: pydantic-v2
|
|
|
81
82
|
return class_
|
|
82
83
|
|
|
83
84
|
else: # pragma: pydantic-v1
|
|
85
|
+
from pydantic.json import pydantic_encoder
|
|
84
86
|
from pydantic import Extra, BaseModel, parse_obj_as, parse_raw_as, root_validator
|
|
85
87
|
|
|
86
88
|
class GitHubModel(BaseModel):
|
|
@@ -97,6 +99,18 @@ else: # pragma: pydantic-v1
|
|
|
97
99
|
def type_validate_json(type_: Type[T], data: Any) -> T:
|
|
98
100
|
return parse_raw_as(type_, data)
|
|
99
101
|
|
|
102
|
+
def to_jsonable_python(obj: Any) -> Any:
|
|
103
|
+
if isinstance(obj, dict):
|
|
104
|
+
return {k: to_jsonable_python(v) for k, v in obj.items()}
|
|
105
|
+
|
|
106
|
+
if isinstance(obj, (list, tuple)):
|
|
107
|
+
return [to_jsonable_python(item) for item in obj]
|
|
108
|
+
|
|
109
|
+
if obj is None or isinstance(obj, (int, float, str, bool)):
|
|
110
|
+
return obj
|
|
111
|
+
|
|
112
|
+
return pydantic_encoder(obj)
|
|
113
|
+
|
|
100
114
|
def model_dump(model: BaseModel, by_alias: bool = True) -> Dict[str, Any]:
|
|
101
115
|
return model.dict(by_alias=by_alias)
|
|
102
116
|
|
githubkit/core.py
CHANGED
|
@@ -21,7 +21,7 @@ import httpx
|
|
|
21
21
|
import hishel
|
|
22
22
|
|
|
23
23
|
from .response import Response
|
|
24
|
-
from .
|
|
24
|
+
from .compat import to_jsonable_python
|
|
25
25
|
from .config import Config, get_config
|
|
26
26
|
from .auth import BaseAuthStrategy, TokenAuthStrategy, UnauthAuthStrategy
|
|
27
27
|
from .typing import (
|
|
@@ -272,7 +272,7 @@ class GitHubCore(Generic[A]):
|
|
|
272
272
|
content=content,
|
|
273
273
|
data=data,
|
|
274
274
|
files=files,
|
|
275
|
-
json=
|
|
275
|
+
json=to_jsonable_python(json),
|
|
276
276
|
headers=headers,
|
|
277
277
|
cookies=cookies,
|
|
278
278
|
)
|
|
@@ -304,7 +304,7 @@ class GitHubCore(Generic[A]):
|
|
|
304
304
|
content=content,
|
|
305
305
|
data=data,
|
|
306
306
|
files=files,
|
|
307
|
-
json=
|
|
307
|
+
json=to_jsonable_python(json),
|
|
308
308
|
headers=headers,
|
|
309
309
|
cookies=cookies,
|
|
310
310
|
)
|
githubkit/typing.py
CHANGED
|
@@ -64,4 +64,4 @@ else: # pragma: pydantic-v1
|
|
|
64
64
|
|
|
65
65
|
# if the property is not required, we allow it to have the value null.
|
|
66
66
|
# See https://github.com/yanyongyu/githubkit/issues/47
|
|
67
|
-
Missing: TypeAlias =
|
|
67
|
+
Missing: TypeAlias = Union[Literal[UNSET], T, None]
|
githubkit/utils.py
CHANGED
|
@@ -3,7 +3,6 @@ from enum import Enum
|
|
|
3
3
|
from typing import Any, Dict, Type, Generic, Literal, TypeVar, final
|
|
4
4
|
|
|
5
5
|
from pydantic import BaseModel
|
|
6
|
-
from pydantic_core import to_jsonable_python
|
|
7
6
|
|
|
8
7
|
from .compat import PYDANTIC_V2, custom_validation, type_validate_python
|
|
9
8
|
|
|
@@ -69,20 +68,6 @@ def is_async(obj: Any) -> bool:
|
|
|
69
68
|
return inspect.iscoroutinefunction(func_)
|
|
70
69
|
|
|
71
70
|
|
|
72
|
-
# FIXME: remove pydantic-core dependency
|
|
73
|
-
def obj_to_jsonable(obj: Any) -> Any:
|
|
74
|
-
if isinstance(obj, dict):
|
|
75
|
-
return {k: obj_to_jsonable(v) for k, v in obj.items()}
|
|
76
|
-
|
|
77
|
-
if isinstance(obj, (list, tuple)):
|
|
78
|
-
return [obj_to_jsonable(item) for item in obj]
|
|
79
|
-
|
|
80
|
-
if obj is None or isinstance(obj, (int, float, str, bool)):
|
|
81
|
-
return obj
|
|
82
|
-
|
|
83
|
-
return to_jsonable_python(obj)
|
|
84
|
-
|
|
85
|
-
|
|
86
71
|
class TaggedUnion(Generic[T]):
|
|
87
72
|
__slots__ = ("type_", "discriminator", "tag")
|
|
88
73
|
|
|
@@ -56,8 +56,8 @@ class GlobalAdvisory(GitHubModel):
|
|
|
56
56
|
repository_advisory_url: Union[str, None] = Field(
|
|
57
57
|
description="The API URL for the repository advisory."
|
|
58
58
|
)
|
|
59
|
-
summary:
|
|
60
|
-
description="A short summary of the advisory."
|
|
59
|
+
summary: str = Field(
|
|
60
|
+
max_length=1024, description="A short summary of the advisory."
|
|
61
61
|
)
|
|
62
62
|
description: Union[Annotated[str, Field(max_length=65535)], None] = Field(
|
|
63
63
|
description="A detailed description of what the advisory entails."
|
|
@@ -33,8 +33,8 @@ class DependabotAlertSecurityAdvisory(GitHubModel):
|
|
|
33
33
|
cve_id: Union[str, None] = Field(
|
|
34
34
|
description="The unique CVE ID assigned to the advisory."
|
|
35
35
|
)
|
|
36
|
-
summary:
|
|
37
|
-
description="A short, plain text summary of the advisory."
|
|
36
|
+
summary: str = Field(
|
|
37
|
+
max_length=1024, description="A short, plain text summary of the advisory."
|
|
38
38
|
)
|
|
39
39
|
description: str = Field(
|
|
40
40
|
description="A long-form Markdown-supported description of the advisory."
|
|
@@ -74,9 +74,7 @@ class DependabotAlertSecurityAdvisoryPropCvss(GitHubModel):
|
|
|
74
74
|
Details for the advisory pertaining to the Common Vulnerability Scoring System.
|
|
75
75
|
"""
|
|
76
76
|
|
|
77
|
-
score:
|
|
78
|
-
description="The overall CVSS score of the advisory."
|
|
79
|
-
)
|
|
77
|
+
score: float = Field(le=10.0, description="The overall CVSS score of the advisory.")
|
|
80
78
|
vector_string: Union[str, None] = Field(
|
|
81
79
|
description="The full CVSS vector string for the advisory."
|
|
82
80
|
)
|
|
@@ -32,9 +32,7 @@ class GistComment(GitHubModel):
|
|
|
32
32
|
id: int = Field()
|
|
33
33
|
node_id: str = Field()
|
|
34
34
|
url: str = Field()
|
|
35
|
-
body:
|
|
36
|
-
description="The comment text."
|
|
37
|
-
)
|
|
35
|
+
body: str = Field(max_length=65535, description="The comment text.")
|
|
38
36
|
user: Union[None, SimpleUser] = Field()
|
|
39
37
|
created_at: datetime = Field()
|
|
40
38
|
updated_at: datetime = Field()
|
|
@@ -29,8 +29,9 @@ class RepositoryRulePullRequestPropParameters(GitHubModel):
|
|
|
29
29
|
require_last_push_approval: bool = Field(
|
|
30
30
|
description="Whether the most recent reviewable push must be approved by someone other than the person who pushed it."
|
|
31
31
|
)
|
|
32
|
-
required_approving_review_count:
|
|
33
|
-
|
|
32
|
+
required_approving_review_count: int = Field(
|
|
33
|
+
le=10.0,
|
|
34
|
+
description="The number of approving reviews that are required before a pull request can be merged.",
|
|
34
35
|
)
|
|
35
36
|
required_review_thread_resolution: bool = Field(
|
|
36
37
|
description="All conversations on code must be resolved before a pull request can be merged."
|
|
@@ -37,8 +37,8 @@ class RepositoryAdvisory(GitHubModel):
|
|
|
37
37
|
)
|
|
38
38
|
url: str = Field(description="The API URL for the advisory.")
|
|
39
39
|
html_url: str = Field(description="The URL for the advisory.")
|
|
40
|
-
summary:
|
|
41
|
-
description="A short summary of the advisory."
|
|
40
|
+
summary: str = Field(
|
|
41
|
+
max_length=1024, description="A short summary of the advisory."
|
|
42
42
|
)
|
|
43
43
|
description: Union[Annotated[str, Field(max_length=65535)], None] = Field(
|
|
44
44
|
description="A detailed description of what the advisory entails."
|
|
@@ -44,9 +44,7 @@ class ProtectedBranchPullRequestReview(GitHubModel):
|
|
|
44
44
|
)
|
|
45
45
|
dismiss_stale_reviews: bool = Field()
|
|
46
46
|
require_code_owner_reviews: bool = Field()
|
|
47
|
-
required_approving_review_count: Missing[
|
|
48
|
-
default=UNSET
|
|
49
|
-
)
|
|
47
|
+
required_approving_review_count: Missing[int] = Field(le=6.0, default=UNSET)
|
|
50
48
|
require_last_push_approval: Missing[bool] = Field(
|
|
51
49
|
default=UNSET,
|
|
52
50
|
description="Whether the most recent push must be approved by someone other than the person who pushed it.",
|
|
@@ -29,10 +29,11 @@ class CodeScanningAnalysis(GitHubModel):
|
|
|
29
29
|
ref: str = Field(
|
|
30
30
|
description="The Git reference, formatted as `refs/pull/<number>/merge`, `refs/pull/<number>/head`,\n`refs/heads/<branch name>` or simply `<branch name>`."
|
|
31
31
|
)
|
|
32
|
-
commit_sha:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
commit_sha: str = Field(
|
|
33
|
+
min_length=40,
|
|
34
|
+
max_length=40,
|
|
35
|
+
pattern="^[0-9a-fA-F]+$",
|
|
36
|
+
description="The SHA of the commit to which the analysis you are uploading relates.",
|
|
36
37
|
)
|
|
37
38
|
analysis_key: str = Field(
|
|
38
39
|
description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name."
|
|
@@ -25,7 +25,8 @@ from .group_0224 import Metadata
|
|
|
25
25
|
class Dependency(GitHubModel):
|
|
26
26
|
"""Dependency"""
|
|
27
27
|
|
|
28
|
-
package_url: Missing[
|
|
28
|
+
package_url: Missing[str] = Field(
|
|
29
|
+
pattern="^pkg",
|
|
29
30
|
default=UNSET,
|
|
30
31
|
description="Package-url (PURL) of dependency. See https://github.com/package-url/purl-spec for more details.",
|
|
31
32
|
)
|
|
@@ -32,11 +32,14 @@ class Snapshot(GitHubModel):
|
|
|
32
32
|
description="The version of the repository snapshot submission."
|
|
33
33
|
)
|
|
34
34
|
job: SnapshotPropJob = Field()
|
|
35
|
-
sha:
|
|
36
|
-
|
|
35
|
+
sha: str = Field(
|
|
36
|
+
min_length=40,
|
|
37
|
+
max_length=40,
|
|
38
|
+
description="The commit SHA associated with this dependency snapshot. Maximum length: 40 characters.",
|
|
37
39
|
)
|
|
38
|
-
ref:
|
|
39
|
-
|
|
40
|
+
ref: str = Field(
|
|
41
|
+
pattern="^refs/",
|
|
42
|
+
description="The repository branch that triggered this snapshot.",
|
|
40
43
|
)
|
|
41
44
|
detector: SnapshotPropDetector = Field(
|
|
42
45
|
description="A description of the detector used."
|
|
@@ -37,8 +37,8 @@ class DeploymentStatus(GitHubModel):
|
|
|
37
37
|
"error", "failure", "inactive", "pending", "success", "queued", "in_progress"
|
|
38
38
|
] = Field(description="The state of the status.")
|
|
39
39
|
creator: Union[None, SimpleUser] = Field()
|
|
40
|
-
description:
|
|
41
|
-
default="", description="A short description of the status."
|
|
40
|
+
description: str = Field(
|
|
41
|
+
max_length=140, default="", description="A short description of the status."
|
|
42
42
|
)
|
|
43
43
|
environment: Missing[str] = Field(
|
|
44
44
|
default=UNSET,
|
|
@@ -33,9 +33,7 @@ class GitRefPropObject(GitHubModel):
|
|
|
33
33
|
"""GitRefPropObject"""
|
|
34
34
|
|
|
35
35
|
type: str = Field()
|
|
36
|
-
sha:
|
|
37
|
-
description="SHA for the reference"
|
|
38
|
-
)
|
|
36
|
+
sha: str = Field(min_length=40, max_length=40, description="SHA for the reference")
|
|
39
37
|
url: str = Field()
|
|
40
38
|
|
|
41
39
|
|
|
@@ -23,11 +23,12 @@ from githubkit.compat import GitHubModel, model_rebuild
|
|
|
23
23
|
class RepositoryAdvisoryCreate(GitHubModel):
|
|
24
24
|
"""RepositoryAdvisoryCreate"""
|
|
25
25
|
|
|
26
|
-
summary:
|
|
27
|
-
description="A short summary of the advisory."
|
|
26
|
+
summary: str = Field(
|
|
27
|
+
max_length=1024, description="A short summary of the advisory."
|
|
28
28
|
)
|
|
29
|
-
description:
|
|
30
|
-
|
|
29
|
+
description: str = Field(
|
|
30
|
+
max_length=65535,
|
|
31
|
+
description="A detailed description of what the advisory impacts.",
|
|
31
32
|
)
|
|
32
33
|
cve_id: Missing[Union[str, None]] = Field(
|
|
33
34
|
default=UNSET, description="The Common Vulnerabilities and Exposures (CVE) ID."
|
|
@@ -23,11 +23,12 @@ from githubkit.compat import GitHubModel, model_rebuild
|
|
|
23
23
|
class PrivateVulnerabilityReportCreate(GitHubModel):
|
|
24
24
|
"""PrivateVulnerabilityReportCreate"""
|
|
25
25
|
|
|
26
|
-
summary:
|
|
27
|
-
description="A short summary of the advisory."
|
|
26
|
+
summary: str = Field(
|
|
27
|
+
max_length=1024, description="A short summary of the advisory."
|
|
28
28
|
)
|
|
29
|
-
description:
|
|
30
|
-
|
|
29
|
+
description: str = Field(
|
|
30
|
+
max_length=65535,
|
|
31
|
+
description="A detailed description of what the advisory impacts.",
|
|
31
32
|
)
|
|
32
33
|
vulnerabilities: Missing[
|
|
33
34
|
Union[List[PrivateVulnerabilityReportCreatePropVulnerabilitiesItems], None]
|
|
@@ -23,10 +23,11 @@ from githubkit.compat import GitHubModel, model_rebuild
|
|
|
23
23
|
class RepositoryAdvisoryUpdate(GitHubModel):
|
|
24
24
|
"""RepositoryAdvisoryUpdate"""
|
|
25
25
|
|
|
26
|
-
summary: Missing[
|
|
27
|
-
default=UNSET, description="A short summary of the advisory."
|
|
26
|
+
summary: Missing[str] = Field(
|
|
27
|
+
max_length=1024, default=UNSET, description="A short summary of the advisory."
|
|
28
28
|
)
|
|
29
|
-
description: Missing[
|
|
29
|
+
description: Missing[str] = Field(
|
|
30
|
+
max_length=65535,
|
|
30
31
|
default=UNSET,
|
|
31
32
|
description="A detailed description of what the advisory impacts.",
|
|
32
33
|
)
|
|
@@ -20,9 +20,7 @@ from githubkit.compat import GitHubModel, model_rebuild
|
|
|
20
20
|
class GistsGistIdCommentsPostBody(GitHubModel):
|
|
21
21
|
"""GistsGistIdCommentsPostBody"""
|
|
22
22
|
|
|
23
|
-
body:
|
|
24
|
-
description="The comment text."
|
|
25
|
-
)
|
|
23
|
+
body: str = Field(max_length=65535, description="The comment text.")
|
|
26
24
|
|
|
27
25
|
|
|
28
26
|
model_rebuild(GistsGistIdCommentsPostBody)
|
|
@@ -20,9 +20,7 @@ from githubkit.compat import GitHubModel, model_rebuild
|
|
|
20
20
|
class GistsGistIdCommentsCommentIdPatchBody(GitHubModel):
|
|
21
21
|
"""GistsGistIdCommentsCommentIdPatchBody"""
|
|
22
22
|
|
|
23
|
-
body:
|
|
24
|
-
description="The comment text."
|
|
25
|
-
)
|
|
23
|
+
body: str = Field(max_length=65535, description="The comment text.")
|
|
26
24
|
|
|
27
25
|
|
|
28
26
|
model_rebuild(GistsGistIdCommentsCommentIdPatchBody)
|
|
@@ -27,8 +27,10 @@ class OrgsOrgActionsRunnersGenerateJitconfigPostBody(GitHubModel):
|
|
|
27
27
|
runner_group_id: int = Field(
|
|
28
28
|
description="The ID of the runner group to register the runner to."
|
|
29
29
|
)
|
|
30
|
-
labels:
|
|
31
|
-
|
|
30
|
+
labels: List[str] = Field(
|
|
31
|
+
max_length=100,
|
|
32
|
+
min_length=1,
|
|
33
|
+
description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.",
|
|
32
34
|
)
|
|
33
35
|
work_folder: Missing[str] = Field(
|
|
34
36
|
default=UNSET,
|
|
@@ -21,8 +21,9 @@ from githubkit.compat import GitHubModel, model_rebuild
|
|
|
21
21
|
class OrgsOrgActionsRunnersRunnerIdLabelsPutBody(GitHubModel):
|
|
22
22
|
"""OrgsOrgActionsRunnersRunnerIdLabelsPutBody"""
|
|
23
23
|
|
|
24
|
-
labels:
|
|
25
|
-
|
|
24
|
+
labels: List[str] = Field(
|
|
25
|
+
max_length=100,
|
|
26
|
+
description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.",
|
|
26
27
|
)
|
|
27
28
|
|
|
28
29
|
|
|
@@ -21,8 +21,10 @@ from githubkit.compat import GitHubModel, model_rebuild
|
|
|
21
21
|
class OrgsOrgActionsRunnersRunnerIdLabelsPostBody(GitHubModel):
|
|
22
22
|
"""OrgsOrgActionsRunnersRunnerIdLabelsPostBody"""
|
|
23
23
|
|
|
24
|
-
labels:
|
|
25
|
-
|
|
24
|
+
labels: List[str] = Field(
|
|
25
|
+
max_length=100,
|
|
26
|
+
min_length=1,
|
|
27
|
+
description="The names of the custom labels to add to the runner.",
|
|
26
28
|
)
|
|
27
29
|
|
|
28
30
|
|
|
@@ -23,14 +23,8 @@ from githubkit.compat import GitHubModel, model_rebuild
|
|
|
23
23
|
class OrgsOrgActionsSecretsSecretNamePutBody(GitHubModel):
|
|
24
24
|
"""OrgsOrgActionsSecretsSecretNamePutBody"""
|
|
25
25
|
|
|
26
|
-
encrypted_value: Missing[
|
|
27
|
-
|
|
28
|
-
str,
|
|
29
|
-
Field(
|
|
30
|
-
pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$"
|
|
31
|
-
),
|
|
32
|
-
]
|
|
33
|
-
] = Field(
|
|
26
|
+
encrypted_value: Missing[str] = Field(
|
|
27
|
+
pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$",
|
|
34
28
|
default=UNSET,
|
|
35
29
|
description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/actions/secrets#get-an-organization-public-key) endpoint.",
|
|
36
30
|
)
|
|
@@ -31,7 +31,8 @@ class OrgsOrgCodespacesAccessPutBody(GitHubModel):
|
|
|
31
31
|
] = Field(
|
|
32
32
|
description="Which users can access codespaces in the organization. `disabled` means that no users can access codespaces in the organization."
|
|
33
33
|
)
|
|
34
|
-
selected_usernames: Missing[
|
|
34
|
+
selected_usernames: Missing[List[str]] = Field(
|
|
35
|
+
max_length=100,
|
|
35
36
|
default=UNSET,
|
|
36
37
|
description="The usernames of the organization members who should have access to codespaces in the organization. Required when `visibility` is `selected_members`. The provided list of usernames will replace any existing value.",
|
|
37
38
|
)
|
|
@@ -21,8 +21,9 @@ from githubkit.compat import GitHubModel, model_rebuild
|
|
|
21
21
|
class OrgsOrgCodespacesAccessSelectedUsersPostBody(GitHubModel):
|
|
22
22
|
"""OrgsOrgCodespacesAccessSelectedUsersPostBody"""
|
|
23
23
|
|
|
24
|
-
selected_usernames:
|
|
25
|
-
|
|
24
|
+
selected_usernames: List[str] = Field(
|
|
25
|
+
max_length=100,
|
|
26
|
+
description="The usernames of the organization members whose codespaces be billed to the organization.",
|
|
26
27
|
)
|
|
27
28
|
|
|
28
29
|
|
|
@@ -21,8 +21,9 @@ from githubkit.compat import GitHubModel, model_rebuild
|
|
|
21
21
|
class OrgsOrgCodespacesAccessSelectedUsersDeleteBody(GitHubModel):
|
|
22
22
|
"""OrgsOrgCodespacesAccessSelectedUsersDeleteBody"""
|
|
23
23
|
|
|
24
|
-
selected_usernames:
|
|
25
|
-
|
|
24
|
+
selected_usernames: List[str] = Field(
|
|
25
|
+
max_length=100,
|
|
26
|
+
description="The usernames of the organization members whose codespaces should not be billed to the organization.",
|
|
26
27
|
)
|
|
27
28
|
|
|
28
29
|
|
|
@@ -23,14 +23,8 @@ from githubkit.compat import GitHubModel, model_rebuild
|
|
|
23
23
|
class OrgsOrgCodespacesSecretsSecretNamePutBody(GitHubModel):
|
|
24
24
|
"""OrgsOrgCodespacesSecretsSecretNamePutBody"""
|
|
25
25
|
|
|
26
|
-
encrypted_value: Missing[
|
|
27
|
-
|
|
28
|
-
str,
|
|
29
|
-
Field(
|
|
30
|
-
pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$"
|
|
31
|
-
),
|
|
32
|
-
]
|
|
33
|
-
] = Field(
|
|
26
|
+
encrypted_value: Missing[str] = Field(
|
|
27
|
+
pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$",
|
|
34
28
|
default=UNSET,
|
|
35
29
|
description="The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/codespaces/organization-secrets#get-an-organization-public-key) endpoint.",
|
|
36
30
|
)
|
|
@@ -21,8 +21,9 @@ from githubkit.compat import GitHubModel, model_rebuild
|
|
|
21
21
|
class OrgsOrgCopilotBillingSelectedTeamsPostBody(GitHubModel):
|
|
22
22
|
"""OrgsOrgCopilotBillingSelectedTeamsPostBody"""
|
|
23
23
|
|
|
24
|
-
selected_teams:
|
|
25
|
-
|
|
24
|
+
selected_teams: List[str] = Field(
|
|
25
|
+
min_length=1,
|
|
26
|
+
description="List of team names within the organization to which to grant access to GitHub Copilot.",
|
|
26
27
|
)
|
|
27
28
|
|
|
28
29
|
|
|
@@ -21,8 +21,9 @@ from githubkit.compat import GitHubModel, model_rebuild
|
|
|
21
21
|
class OrgsOrgCopilotBillingSelectedTeamsDeleteBody(GitHubModel):
|
|
22
22
|
"""OrgsOrgCopilotBillingSelectedTeamsDeleteBody"""
|
|
23
23
|
|
|
24
|
-
selected_teams:
|
|
25
|
-
|
|
24
|
+
selected_teams: List[str] = Field(
|
|
25
|
+
min_length=1,
|
|
26
|
+
description="The names of teams from which to revoke access to GitHub Copilot.",
|
|
26
27
|
)
|
|
27
28
|
|
|
28
29
|
|
|
@@ -21,8 +21,9 @@ from githubkit.compat import GitHubModel, model_rebuild
|
|
|
21
21
|
class OrgsOrgCopilotBillingSelectedUsersPostBody(GitHubModel):
|
|
22
22
|
"""OrgsOrgCopilotBillingSelectedUsersPostBody"""
|
|
23
23
|
|
|
24
|
-
selected_usernames:
|
|
25
|
-
|
|
24
|
+
selected_usernames: List[str] = Field(
|
|
25
|
+
min_length=1,
|
|
26
|
+
description="The usernames of the organization members to be granted access to GitHub Copilot.",
|
|
26
27
|
)
|
|
27
28
|
|
|
28
29
|
|
|
@@ -21,8 +21,9 @@ from githubkit.compat import GitHubModel, model_rebuild
|
|
|
21
21
|
class OrgsOrgCopilotBillingSelectedUsersDeleteBody(GitHubModel):
|
|
22
22
|
"""OrgsOrgCopilotBillingSelectedUsersDeleteBody"""
|
|
23
23
|
|
|
24
|
-
selected_usernames:
|
|
25
|
-
|
|
24
|
+
selected_usernames: List[str] = Field(
|
|
25
|
+
min_length=1,
|
|
26
|
+
description="The usernames of the organization members for which to revoke access to GitHub Copilot.",
|
|
26
27
|
)
|
|
27
28
|
|
|
28
29
|
|
|
@@ -23,14 +23,8 @@ from githubkit.compat import GitHubModel, model_rebuild
|
|
|
23
23
|
class OrgsOrgDependabotSecretsSecretNamePutBody(GitHubModel):
|
|
24
24
|
"""OrgsOrgDependabotSecretsSecretNamePutBody"""
|
|
25
25
|
|
|
26
|
-
encrypted_value: Missing[
|
|
27
|
-
|
|
28
|
-
str,
|
|
29
|
-
Field(
|
|
30
|
-
pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$"
|
|
31
|
-
),
|
|
32
|
-
]
|
|
33
|
-
] = Field(
|
|
26
|
+
encrypted_value: Missing[str] = Field(
|
|
27
|
+
pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$",
|
|
34
28
|
default=UNSET,
|
|
35
29
|
description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/dependabot/secrets#get-an-organization-public-key) endpoint.",
|
|
36
30
|
)
|
|
@@ -23,9 +23,9 @@ from githubkit.compat import GitHubModel, model_rebuild
|
|
|
23
23
|
class OrgsOrgPersonalAccessTokenRequestsPostBody(GitHubModel):
|
|
24
24
|
"""OrgsOrgPersonalAccessTokenRequestsPostBody"""
|
|
25
25
|
|
|
26
|
-
pat_request_ids: Missing[
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
pat_request_ids: Missing[List[int]] = Field(
|
|
27
|
+
max_length=100,
|
|
28
|
+
min_length=1,
|
|
29
29
|
default=UNSET,
|
|
30
30
|
description="Unique identifiers of the requests for access via fine-grained personal access token. Must be formed of between 1 and 100 `pat_request_id` values.",
|
|
31
31
|
)
|
|
@@ -24,8 +24,10 @@ class OrgsOrgPersonalAccessTokensPostBody(GitHubModel):
|
|
|
24
24
|
action: Literal["revoke"] = Field(
|
|
25
25
|
description="Action to apply to the fine-grained personal access token."
|
|
26
26
|
)
|
|
27
|
-
pat_ids:
|
|
28
|
-
|
|
27
|
+
pat_ids: List[int] = Field(
|
|
28
|
+
max_length=100,
|
|
29
|
+
min_length=1,
|
|
30
|
+
description="The IDs of the fine-grained personal access tokens.",
|
|
29
31
|
)
|
|
30
32
|
|
|
31
33
|
|
|
@@ -25,9 +25,11 @@ from .group_0091 import OrgCustomProperty
|
|
|
25
25
|
class OrgsOrgPropertiesSchemaPatchBody(GitHubModel):
|
|
26
26
|
"""OrgsOrgPropertiesSchemaPatchBody"""
|
|
27
27
|
|
|
28
|
-
properties:
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
properties: List[OrgCustomProperty] = Field(
|
|
29
|
+
max_length=100,
|
|
30
|
+
min_length=1,
|
|
31
|
+
description="The array of custom properties to create or update.",
|
|
32
|
+
)
|
|
31
33
|
|
|
32
34
|
|
|
33
35
|
model_rebuild(OrgsOrgPropertiesSchemaPatchBody)
|
|
@@ -23,8 +23,10 @@ from .group_0092 import CustomPropertyValue
|
|
|
23
23
|
class OrgsOrgPropertiesValuesPatchBody(GitHubModel):
|
|
24
24
|
"""OrgsOrgPropertiesValuesPatchBody"""
|
|
25
25
|
|
|
26
|
-
repository_names:
|
|
27
|
-
|
|
26
|
+
repository_names: List[str] = Field(
|
|
27
|
+
max_length=30,
|
|
28
|
+
min_length=1,
|
|
29
|
+
description="The names of repositories that the custom property values will be applied to.",
|
|
28
30
|
)
|
|
29
31
|
properties: List[CustomPropertyValue] = Field(
|
|
30
32
|
description="List of custom property names and associated values to apply to the repositories."
|
|
@@ -22,8 +22,9 @@ from githubkit.compat import GitHubModel, model_rebuild
|
|
|
22
22
|
class ProjectsColumnsCardsCardIdMovesPostBody(GitHubModel):
|
|
23
23
|
"""ProjectsColumnsCardsCardIdMovesPostBody"""
|
|
24
24
|
|
|
25
|
-
position:
|
|
26
|
-
|
|
25
|
+
position: str = Field(
|
|
26
|
+
pattern="^(?:top|bottom|after:\\d+)$",
|
|
27
|
+
description="The position of the card in a column. Can be one of: `top`, `bottom`, or `after:<card_id>` to place after the specified card.",
|
|
27
28
|
)
|
|
28
29
|
column_id: Missing[int] = Field(
|
|
29
30
|
default=UNSET,
|
|
@@ -20,8 +20,9 @@ from githubkit.compat import GitHubModel, model_rebuild
|
|
|
20
20
|
class ProjectsColumnsColumnIdMovesPostBody(GitHubModel):
|
|
21
21
|
"""ProjectsColumnsColumnIdMovesPostBody"""
|
|
22
22
|
|
|
23
|
-
position:
|
|
24
|
-
|
|
23
|
+
position: str = Field(
|
|
24
|
+
pattern="^(?:first|last|after:\\d+)$",
|
|
25
|
+
description="The position of the column in a project. Can be one of: `first`, `last`, or `after:<column_id>` to place after the specified column.",
|
|
25
26
|
)
|
|
26
27
|
|
|
27
28
|
|
|
@@ -27,8 +27,10 @@ class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody(GitHubModel):
|
|
|
27
27
|
runner_group_id: int = Field(
|
|
28
28
|
description="The ID of the runner group to register the runner to."
|
|
29
29
|
)
|
|
30
|
-
labels:
|
|
31
|
-
|
|
30
|
+
labels: List[str] = Field(
|
|
31
|
+
max_length=100,
|
|
32
|
+
min_length=1,
|
|
33
|
+
description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.",
|
|
32
34
|
)
|
|
33
35
|
work_folder: Missing[str] = Field(
|
|
34
36
|
default=UNSET,
|