├── githubkit ├── py.typed ├── log.py ├── versions │ ├── latest │ │ └── __init__.py │ ├── v2022_11_28 │ │ ├── __init__.py │ │ ├── models │ │ │ ├── group_0385.py │ │ │ ├── group_0896.py │ │ │ ├── group_0914.py │ │ │ ├── group_0158.py │ │ │ ├── group_1264.py │ │ │ ├── group_0334.py │ │ │ ├── group_0347.py │ │ │ ├── group_1014.py │ │ │ ├── group_0442.py │ │ │ ├── group_1020.py │ │ │ ├── group_0438.py │ │ │ ├── group_0888.py │ │ │ ├── group_0245.py │ │ │ ├── group_0465.py │ │ │ ├── group_1165.py │ │ │ ├── group_0231.py │ │ │ ├── group_0390.py │ │ │ ├── group_0443.py │ │ │ ├── group_0059.py │ │ │ ├── group_0077.py │ │ │ ├── group_0912.py │ │ │ ├── group_0068.py │ │ │ ├── group_0436.py │ │ │ ├── group_0446.py │ │ │ ├── group_1111.py │ │ │ ├── group_0061.py │ │ │ ├── group_0106.py │ │ │ ├── group_0353.py │ │ │ ├── group_0445.py │ │ │ ├── group_0066.py │ │ │ ├── group_0358.py │ │ │ ├── group_0913.py │ │ │ ├── group_0447.py │ │ │ ├── group_0461.py │ │ │ ├── group_1128.py │ │ │ ├── group_0398.py │ │ │ ├── group_0444.py │ │ │ ├── group_1104.py │ │ │ ├── group_1248.py │ │ │ ├── group_0093.py │ │ │ ├── group_0918.py │ │ │ ├── group_0990.py │ │ │ ├── group_1177.py │ │ │ ├── group_1168.py │ │ │ ├── group_1180.py │ │ │ ├── group_0891.py │ │ │ ├── group_0950.py │ │ │ ├── group_1173.py │ │ │ ├── group_1262.py │ │ │ ├── group_0056.py │ │ │ ├── group_0893.py │ │ │ ├── group_1208.py │ │ │ ├── group_0435.py │ │ │ ├── group_0890.py │ │ │ ├── group_0892.py │ │ │ ├── group_0934.py │ │ │ ├── group_1013.py │ │ │ ├── group_1189.py │ │ │ ├── group_0188.py │ │ │ ├── group_1120.py │ │ │ ├── group_1183.py │ │ │ ├── group_0466.py │ │ │ ├── group_1066.py │ │ │ ├── group_1238.py │ │ │ ├── group_1070.py │ │ │ ├── group_1080.py │ │ │ ├── group_1221.py │ │ │ ├── group_0134.py │ │ │ ├── group_0172.py │ │ │ ├── group_1139.py │ │ │ └── group_1258.py │ │ ├── webhooks │ │ │ ├── fork.py │ │ │ ├── ping.py │ │ │ ├── push.py │ │ │ ├── create.py │ │ │ ├── delete.py │ │ │ ├── gollum.py │ │ │ ├── public.py │ │ │ ├── status.py │ │ │ ├── meta.py │ │ │ ├── team_add.py │ │ │ ├── watch.py │ │ │ ├── page_build.py │ │ │ ├── deployment.py │ │ │ ├── commit_comment.py │ │ │ ├── repository_import.py │ │ │ ├── workflow_dispatch.py │ │ │ ├── deployment_status.py │ │ │ ├── security_and_analysis.py │ │ │ ├── repository_dispatch.py │ │ │ ├── installation_target.py │ │ │ ├── secret_scanning_scan.py │ │ │ ├── custom_property_values.py │ │ │ └── github_app_authorization.py │ │ └── types │ │ │ ├── group_0385.py │ │ │ ├── group_0158.py │ │ │ ├── group_0093.py │ │ │ ├── group_0896.py │ │ │ ├── group_0914.py │ │ │ ├── group_0347.py │ │ │ ├── group_0912.py │ │ │ ├── group_0443.py │ │ │ ├── group_1265.py │ │ │ ├── group_0438.py │ │ │ ├── group_0895.py │ │ │ ├── group_1239.py │ │ │ ├── group_0106.py │ │ │ ├── group_0245.py │ │ │ ├── group_1264.py │ │ │ ├── group_0344.py │ │ │ ├── group_0918.py │ │ │ ├── group_1111.py │ │ │ ├── group_1154.py │ │ │ ├── group_0442.py │ │ │ ├── group_0465.py │ │ │ ├── group_0891.py │ │ │ ├── group_1014.py │ │ │ └── group_1189.py │ ├── ghec_v2022_11_28 │ │ ├── __init__.py │ │ ├── models │ │ │ ├── group_0454.py │ │ │ ├── group_0987.py │ │ │ ├── group_1071.py │ │ │ ├── group_0290.py │ │ │ ├── group_1433.py │ │ │ ├── group_0403.py │ │ │ ├── group_0416.py │ │ │ ├── group_1169.py │ │ │ ├── group_0511.py │ │ │ ├── group_1175.py │ │ │ ├── group_0507.py │ │ │ ├── group_0979.py │ │ │ ├── group_0314.py │ │ │ ├── group_0548.py │ │ │ ├── group_1330.py │ │ │ ├── group_0176.py │ │ │ ├── group_0459.py │ │ │ ├── group_0512.py │ │ │ ├── group_0210.py │ │ │ ├── group_0060.py │ │ │ ├── group_0228.py │ │ │ ├── group_1069.py │ │ │ ├── group_0219.py │ │ │ ├── group_0505.py │ │ │ ├── group_0515.py │ │ │ ├── group_1270.py │ │ │ ├── group_0042.py │ │ │ ├── group_0212.py │ │ │ ├── group_0422.py │ │ │ ├── group_0514.py │ │ │ ├── group_0217.py │ │ │ ├── group_0427.py │ │ │ ├── group_1070.py │ │ │ ├── group_0516.py │ │ │ ├── group_0544.py │ │ │ ├── group_1287.py │ │ │ ├── group_0467.py │ │ │ ├── group_0513.py │ │ │ ├── group_1210.py │ │ │ ├── group_1261.py │ │ │ ├── group_1417.py │ │ │ ├── group_0187.py │ │ │ ├── group_1075.py │ │ │ ├── group_1143.py │ │ │ ├── group_1342.py │ │ │ ├── group_1333.py │ │ │ ├── group_1345.py │ │ │ ├── group_0982.py │ │ │ ├── group_1106.py │ │ │ ├── group_1338.py │ │ │ ├── group_1431.py │ │ │ ├── group_0207.py │ │ │ ├── group_0984.py │ │ │ ├── group_1373.py │ │ │ ├── group_0504.py │ │ │ ├── group_0981.py │ │ │ ├── group_0983.py │ │ │ ├── group_1090.py │ │ │ ├── group_1168.py │ │ │ ├── group_1354.py │ │ │ ├── group_0130.py │ │ │ ├── group_0265.py │ │ │ ├── group_1279.py │ │ │ ├── group_1348.py │ │ │ ├── group_0549.py │ │ │ ├── group_1223.py │ │ │ ├── group_1403.py │ │ │ ├── group_0278.py │ │ │ ├── group_1227.py │ │ │ ├── group_1237.py │ │ │ ├── group_1386.py │ │ │ └── group_0256.py │ │ ├── webhooks │ │ │ ├── fork.py │ │ │ ├── ping.py │ │ │ ├── push.py │ │ │ ├── create.py │ │ │ ├── delete.py │ │ │ ├── gollum.py │ │ │ ├── public.py │ │ │ ├── status.py │ │ │ ├── meta.py │ │ │ ├── team_add.py │ │ │ ├── watch.py │ │ │ ├── page_build.py │ │ │ ├── deployment.py │ │ │ ├── commit_comment.py │ │ │ ├── repository_import.py │ │ │ ├── workflow_dispatch.py │ │ │ ├── deployment_status.py │ │ │ ├── security_and_analysis.py │ │ │ ├── repository_dispatch.py │ │ │ ├── installation_target.py │ │ │ ├── secret_scanning_scan.py │ │ │ ├── custom_property_values.py │ │ │ └── github_app_authorization.py │ │ └── types │ │ │ ├── group_0454.py │ │ │ ├── group_0290.py │ │ │ ├── group_0187.py │ │ │ ├── group_0987.py │ │ │ ├── group_1071.py │ │ │ ├── group_0416.py │ │ │ ├── group_1069.py │ │ │ ├── group_0512.py │ │ │ ├── group_1434.py │ │ │ ├── group_0507.py │ │ │ ├── group_0986.py │ │ │ ├── group_1404.py │ │ │ ├── group_0042.py │ │ │ ├── group_0314.py │ │ │ ├── group_1433.py │ │ │ ├── group_0413.py │ │ │ ├── group_1075.py │ │ │ ├── group_1270.py │ │ │ ├── group_1319.py │ │ │ └── group_0511.py │ └── __init__.py ├── auth │ ├── base.py │ ├── unauth.py │ └── __init__.py ├── webhooks │ └── __init__.py └── cache │ └── __init__.py ├── .github ├── FUNDING.yml ├── workflows │ └── ruff.yml ├── dependabot.yml └── actions │ └── setup-python │ └── action.yml ├── docs └── css │ └── custom.css ├── codegen ├── log.py ├── templates │ ├── __init__.py.jinja │ ├── header.jinja │ ├── models │ │ ├── _docstring.py.jinja │ │ └── models.py.jinja │ ├── rest │ │ └── _docstring.py.jinja │ ├── versions │ │ └── __init__.py.jinja │ └── latest │ │ ├── models.py.jinja │ │ └── types.py.jinja ├── __main__.py ├── pyproject.toml └── parser │ └── schemas │ ├── bool_schema.py │ ├── any_schema.py │ └── none_schema.py ├── CONTRIBUTING.md ├── codecov.yml ├── .markdownlint.yaml ├── scripts ├── setup-envs.sh ├── run-tests.sh ├── run-codegen.sh └── test-all-models.sh ├── tests ├── test_auth │ └── test_auth_switch.py ├── conftest.py ├── test_rest │ └── test_cache.py ├── utils.py ├── test_versions │ └── test_types.py └── test_graphql │ └── test_endpoint.py ├── .prettierrc └── .pre-commit-config.yaml /githubkit/py.typed: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | custom: ["https://afdian.com/@devnull"] 2 | -------------------------------------------------------------------------------- /docs/css/custom.css: -------------------------------------------------------------------------------- 1 | .hidden { 2 | display: none; 3 | } 4 | -------------------------------------------------------------------------------- /codegen/log.py: -------------------------------------------------------------------------------- 1 | import logging 2 | 3 | logger = logging.getLogger("codegen") 4 | -------------------------------------------------------------------------------- /githubkit/log.py: -------------------------------------------------------------------------------- 1 | import logging 2 | 3 | logger = logging.getLogger("githubkit") 4 | -------------------------------------------------------------------------------- /codegen/templates/__init__.py.jinja: -------------------------------------------------------------------------------- 1 | {% from "header.jinja" import header %} 2 | 3 | """{{ header() }}""" 4 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | See [GitHubKit Contributing Guide](https://yanyongyu.github.io/githubkit/contributing/). 4 | -------------------------------------------------------------------------------- /codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | status: 3 | project: false 4 | patch: false 5 | changes: false 6 | comment: false 7 | github_checks: false 8 | -------------------------------------------------------------------------------- /.markdownlint.yaml: -------------------------------------------------------------------------------- 1 | MD013: false # line-length 2 | MD024: # no-duplicate-heading 3 | siblings_only: true 4 | MD033: false # no-inline-html 5 | MD046: false # code-block-style 6 | -------------------------------------------------------------------------------- /scripts/setup-envs.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | 5 | # setup dev environment 6 | echo "Setting up dev environment" 7 | uv sync --all-extras && uv run pre-commit install 8 | -------------------------------------------------------------------------------- /scripts/run-tests.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | 5 | # cd to the root of the project 6 | cd "$(dirname "$0")/.." 7 | 8 | # Run the tests 9 | pytest -n auto --cov-report xml --junitxml=./junit.xml tests 10 | -------------------------------------------------------------------------------- /codegen/__main__.py: -------------------------------------------------------------------------------- 1 | import logging 2 | 3 | from . import build 4 | 5 | if __name__ == "__main__": 6 | logging.basicConfig( 7 | level=logging.INFO, format="%(asctime)s %(levelname)s %(message)s" 8 | ) 9 | build() 10 | -------------------------------------------------------------------------------- /scripts/run-codegen.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | 5 | # cd to the root of the project 6 | cd "$(dirname "$0")/.." 7 | 8 | python -m codegen && ruff check --select I --fix --exit-zero . && ruff check --fix --exit-zero . && ruff format . && ruff check --fix . 9 | -------------------------------------------------------------------------------- /githubkit/versions/latest/__init__.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/__init__.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/__init__.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | -------------------------------------------------------------------------------- /tests/test_auth/test_auth_switch.py: -------------------------------------------------------------------------------- 1 | from githubkit import GitHub, UnauthAuthStrategy 2 | 3 | 4 | def test_auth_switch(g: GitHub): 5 | new_auth = UnauthAuthStrategy() 6 | 7 | new_g = g.with_auth(new_auth) 8 | assert new_g.auth is new_auth 9 | assert new_g.config == g.config 10 | -------------------------------------------------------------------------------- /codegen/templates/header.jinja: -------------------------------------------------------------------------------- 1 | {% macro header() %} 2 | DO NOT EDIT THIS FILE! 3 | 4 | This file is automatically @generated by githubkit using the follow command: 5 | 6 | bash ./scripts/run-codegen.sh 7 | 8 | See https://github.com/github/rest-api-description for more information. 9 | {% endmacro %} 10 | -------------------------------------------------------------------------------- /tests/conftest.py: -------------------------------------------------------------------------------- 1 | import pytest 2 | 3 | from githubkit import ActionAuthStrategy, GitHub 4 | 5 | 6 | @pytest.fixture 7 | def anyio_backend(): 8 | return "asyncio" 9 | 10 | 11 | @pytest.fixture 12 | def g() -> GitHub[ActionAuthStrategy]: 13 | return GitHub(ActionAuthStrategy(), http_cache=False) 14 | -------------------------------------------------------------------------------- /codegen/pyproject.toml: -------------------------------------------------------------------------------- 1 | [tool.ruff] 2 | extend = "../pyproject.toml" 3 | target-version = "py310" 4 | 5 | [tool.ruff.lint] 6 | ignore = ["TID"] 7 | 8 | # pyright config for ci check 9 | [tool.pyright] 10 | extends = "../pyproject.toml" 11 | 12 | executionEnvironments = [{ root = ".", pythonVersion = "3.10" }] 13 | -------------------------------------------------------------------------------- /scripts/test-all-models.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | echo "Start running" 4 | 5 | if env GITHUBKIT_LAZY_DISABLE_FLAG=1 python -c "import githubkit"; then 6 | echo "✅ Test passed: Successfully imported githubkit" 7 | exit 0 8 | else 9 | echo "❌ Test failed: Failed to import githubkit" 10 | exit 1 11 | fi 12 | -------------------------------------------------------------------------------- /.github/workflows/ruff.yml: -------------------------------------------------------------------------------- 1 | name: Ruff Lint 2 | 3 | on: 4 | push: 5 | branches: 6 | - master 7 | pull_request: 8 | 9 | jobs: 10 | ruff: 11 | name: Ruff Lint 12 | runs-on: ubuntu-latest 13 | steps: 14 | - uses: actions/checkout@v6 15 | 16 | - name: Run Ruff Lint 17 | uses: astral-sh/ruff-action@v3 18 | -------------------------------------------------------------------------------- /githubkit/auth/base.py: -------------------------------------------------------------------------------- 1 | import abc 2 | from typing import TYPE_CHECKING 3 | 4 | import httpx 5 | 6 | if TYPE_CHECKING: 7 | from githubkit import GitHubCore 8 | 9 | 10 | class BaseAuthStrategy(abc.ABC): 11 | @abc.abstractmethod 12 | def get_auth_flow(self, github: "GitHubCore") -> httpx.Auth: 13 | raise NotImplementedError 14 | -------------------------------------------------------------------------------- /tests/test_rest/test_cache.py: -------------------------------------------------------------------------------- 1 | from githubkit import GitHub 2 | from githubkit.versions import LATEST_VERSION 3 | 4 | 5 | def test_cache(g: GitHub): 6 | assert g.rest(LATEST_VERSION) is g.rest(LATEST_VERSION) 7 | assert g.rest(LATEST_VERSION).repos is g.rest(LATEST_VERSION).repos 8 | 9 | assert g.rest is g.rest 10 | assert g.rest.repos is g.rest.repos 11 | -------------------------------------------------------------------------------- /tests/utils.py: -------------------------------------------------------------------------------- 1 | from typing import Callable 2 | 3 | import httpx 4 | 5 | from githubkit import GitHub, UnauthAuthStrategy 6 | 7 | 8 | def get_mock_github( 9 | handle: Callable[[httpx.Request], httpx.Response], 10 | ) -> GitHub[UnauthAuthStrategy]: 11 | transport = httpx.MockTransport(handle) 12 | return GitHub(transport=transport, async_transport=transport) 13 | -------------------------------------------------------------------------------- /githubkit/auth/unauth.py: -------------------------------------------------------------------------------- 1 | from typing import TYPE_CHECKING 2 | 3 | import httpx 4 | 5 | from .base import BaseAuthStrategy 6 | 7 | if TYPE_CHECKING: 8 | from githubkit import GitHubCore 9 | 10 | 11 | class UnauthAuthStrategy(BaseAuthStrategy): 12 | """Unauthenticated GitHubKit""" 13 | 14 | def get_auth_flow(self, github: "GitHubCore") -> httpx.Auth: 15 | return httpx.Auth() 16 | -------------------------------------------------------------------------------- /tests/test_versions/test_types.py: -------------------------------------------------------------------------------- 1 | from githubkit.versions.ghec_v2022_11_28.types import ( # noqa: F401 2 | SimpleUserType as SimpleUserGhecV2022_11_28Type, 3 | ) 4 | from githubkit.versions.latest.types import ( # noqa: F401 5 | SimpleUserType as SimpleUserLatestType, 6 | ) 7 | from githubkit.versions.v2022_11_28.types import ( # noqa: F401 8 | SimpleUserType as SimpleUserV2022_11_28Type, 9 | ) 10 | -------------------------------------------------------------------------------- /tests/test_graphql/test_endpoint.py: -------------------------------------------------------------------------------- 1 | from githubkit import GitHub 2 | 3 | 4 | def test_github_api_endpoint(): 5 | g = GitHub(base_url="https://api.github.com") 6 | assert g.graphql._get_graphql_endpoint() == "/graphql" 7 | 8 | 9 | def test_ghes_api_endpoint(): 10 | g = GitHub(base_url="https://example.github.com/api/v3") 11 | assert g.graphql._get_graphql_endpoint() == "https://example.github.com/api/graphql" 12 | -------------------------------------------------------------------------------- /codegen/templates/models/_docstring.py.jinja: -------------------------------------------------------------------------------- 1 | {% macro build_model_docstring(model) %} 2 | """{{ model.title or model.class_name | wordwrap(80) }} 3 | {% if model.description %} 4 | 5 | {{ model.description | wordwrap(80) }} 6 | {% endif %} 7 | {% if model.examples %} 8 | 9 | Examples: 10 | {% for example in model.examples %} 11 | {{ example | string | wordwrap(82) }} 12 | {% endfor %} 13 | {% endif %} 14 | """ 15 | {% endmacro %} 16 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "tabWidth": 2, 3 | "useTabs": false, 4 | "endOfLine": "lf", 5 | "arrowParens": "always", 6 | "singleQuote": false, 7 | "trailingComma": "es5", 8 | "semi": true, 9 | "overrides": [ 10 | { 11 | "files": [ 12 | "**/devcontainer.json", 13 | "**/tsconfig.json", 14 | "**/tsconfig.*.json" 15 | ], 16 | "options": { 17 | "parser": "json" 18 | } 19 | } 20 | ] 21 | } 22 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | updates: 3 | - package-ecosystem: github-actions 4 | directory: "/" 5 | schedule: 6 | interval: daily 7 | groups: 8 | actions: 9 | patterns: 10 | - "*" 11 | 12 | - package-ecosystem: github-actions 13 | directory: "/.github/actions/setup-python" 14 | schedule: 15 | interval: daily 16 | groups: 17 | actions: 18 | patterns: 19 | - "*" 20 | -------------------------------------------------------------------------------- /codegen/templates/rest/_docstring.py.jinja: -------------------------------------------------------------------------------- 1 | {% macro build_docstring(endpoint) %} 2 | """{% if endpoint.deprecated %}DEPRECATED {% endif %}{% if endpoint.operation_id %}{{ endpoint.operation_id }} 3 | {% endif %} 4 | 5 | {{ endpoint.method | upper }} {{ endpoint.path }} 6 | {% if endpoint.description %} 7 | 8 | {{ endpoint.description }} 9 | {% endif %} 10 | {% if endpoint.external_docs %} 11 | 12 | See also: {{ endpoint.external_docs }} 13 | {% endif %} 14 | """ 15 | {% endmacro %} 16 | -------------------------------------------------------------------------------- /githubkit/webhooks/__init__.py: -------------------------------------------------------------------------------- 1 | from githubkit.versions.latest.webhooks import WebhookNamespace 2 | 3 | parse_without_name = WebhookNamespace.parse_without_name 4 | 5 | 6 | parse = WebhookNamespace.parse 7 | 8 | 9 | parse_obj_without_name = WebhookNamespace.parse_obj_without_name 10 | 11 | 12 | parse_obj = WebhookNamespace.parse_obj 13 | 14 | 15 | normalize_payload = WebhookNamespace.normalize_payload 16 | 17 | 18 | sign = WebhookNamespace.sign 19 | 20 | 21 | verify = WebhookNamespace.verify 22 | -------------------------------------------------------------------------------- /codegen/parser/schemas/bool_schema.py: -------------------------------------------------------------------------------- 1 | from ...source import Source 2 | from ..utils import build_boolean, schema_from_source 3 | from .schema import BoolSchema 4 | 5 | 6 | def build_bool_schema(source: Source) -> BoolSchema: 7 | data = schema_from_source(source) 8 | 9 | return BoolSchema( 10 | title=data.title, 11 | description=data.description, 12 | default=build_boolean(data.default) if data.default is not None else None, 13 | examples=data.examples or (data.example and [data.example]), 14 | ) 15 | -------------------------------------------------------------------------------- /codegen/parser/schemas/any_schema.py: -------------------------------------------------------------------------------- 1 | from typing import TYPE_CHECKING 2 | 3 | from ..utils import schema_from_source 4 | from .schema import AnySchema 5 | 6 | if TYPE_CHECKING: 7 | from ...source import Source 8 | 9 | 10 | def build_any_schema(source: "Source") -> AnySchema: 11 | data = schema_from_source(source) 12 | 13 | return AnySchema( 14 | title=data.title, 15 | description=data.description, 16 | default=data.default, 17 | examples=data.examples or (data.example and [data.example]), 18 | ) 19 | -------------------------------------------------------------------------------- /codegen/parser/schemas/none_schema.py: -------------------------------------------------------------------------------- 1 | from typing import TYPE_CHECKING 2 | 3 | from ..utils import schema_from_source 4 | from .schema import NoneSchema 5 | 6 | if TYPE_CHECKING: 7 | from ...source import Source 8 | 9 | 10 | def build_none_schema(source: "Source") -> NoneSchema: 11 | data = schema_from_source(source) 12 | 13 | return NoneSchema( 14 | title=data.title, 15 | description=data.description, 16 | default=data.default, 17 | examples=data.examples or (data.example and [data.example]), 18 | ) 19 | -------------------------------------------------------------------------------- /codegen/templates/versions/__init__.py.jinja: -------------------------------------------------------------------------------- 1 | {% from "header.jinja" import header %} 2 | 3 | """{{ header() }}""" 4 | 5 | from typing import Literal 6 | 7 | VERSIONS = { 8 | {% for version, module in versions.items() %} 9 | "{{ version }}": "{{ module }}", 10 | {% endfor %} 11 | } 12 | LATEST_VERSION = "{{ latest_version }}" 13 | VERSION_TYPE = Literal[{{ versions.keys()|map("repr")|join(", ")}}] 14 | 15 | from .rest import RestVersionSwitcher as RestVersionSwitcher 16 | from .webhooks import WebhooksVersionSwitcher as WebhooksVersionSwitcher 17 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0385.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from githubkit.compat import ExtraGitHubModel, model_rebuild 13 | 14 | 15 | class Language(ExtraGitHubModel): 16 | """Language 17 | 18 | Language 19 | """ 20 | 21 | 22 | model_rebuild(Language) 23 | 24 | __all__ = ("Language",) 25 | -------------------------------------------------------------------------------- /githubkit/cache/__init__.py: -------------------------------------------------------------------------------- 1 | from .base import AsyncBaseCache as AsyncBaseCache 2 | from .base import BaseCache as BaseCache 3 | from .base import BaseCacheStrategy as BaseCacheStrategy 4 | from .mem_cache import MemCache as MemCache 5 | from .mem_cache import MemCacheStrategy as MemCacheStrategy 6 | from .redis import AsyncRedisCache as AsyncRedisCache 7 | from .redis import AsyncRedisCacheStrategy as AsyncRedisCacheStrategy 8 | from .redis import RedisCache as RedisCache 9 | from .redis import RedisCacheStrategy as RedisCacheStrategy 10 | 11 | DEFAULT_CACHE_STRATEGY = MemCacheStrategy() 12 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0454.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from githubkit.compat import ExtraGitHubModel, model_rebuild 13 | 14 | 15 | class Language(ExtraGitHubModel): 16 | """Language 17 | 18 | Language 19 | """ 20 | 21 | 22 | model_rebuild(Language) 23 | 24 | __all__ = ("Language",) 25 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0896.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from githubkit.compat import ExtraGitHubModel, model_rebuild 13 | 14 | 15 | class EmojisGetResponse200(ExtraGitHubModel): 16 | """EmojisGetResponse200""" 17 | 18 | 19 | model_rebuild(EmojisGetResponse200) 20 | 21 | __all__ = ("EmojisGetResponse200",) 22 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0987.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from githubkit.compat import ExtraGitHubModel, model_rebuild 13 | 14 | 15 | class EmojisGetResponse200(ExtraGitHubModel): 16 | """EmojisGetResponse200""" 17 | 18 | 19 | model_rebuild(EmojisGetResponse200) 20 | 21 | __all__ = ("EmojisGetResponse200",) 22 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/webhooks/fork.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookFork 13 | 14 | Event: TypeAlias = WebhookFork 15 | 16 | ForkEvent: TypeAlias = Event 17 | 18 | action_types = WebhookFork 19 | 20 | fork_action_types = action_types 21 | 22 | __all__ = ("Event", "ForkEvent", "action_types", "fork_action_types") 23 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/webhooks/ping.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookPing 13 | 14 | Event: TypeAlias = WebhookPing 15 | 16 | PingEvent: TypeAlias = Event 17 | 18 | action_types = WebhookPing 19 | 20 | ping_action_types = action_types 21 | 22 | __all__ = ("Event", "PingEvent", "action_types", "ping_action_types") 23 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/webhooks/push.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookPush 13 | 14 | Event: TypeAlias = WebhookPush 15 | 16 | PushEvent: TypeAlias = Event 17 | 18 | action_types = WebhookPush 19 | 20 | push_action_types = action_types 21 | 22 | __all__ = ("Event", "PushEvent", "action_types", "push_action_types") 23 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/webhooks/fork.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookFork 13 | 14 | Event: TypeAlias = WebhookFork 15 | 16 | ForkEvent: TypeAlias = Event 17 | 18 | action_types = WebhookFork 19 | 20 | fork_action_types = action_types 21 | 22 | __all__ = ("Event", "ForkEvent", "action_types", "fork_action_types") 23 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/webhooks/ping.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookPing 13 | 14 | Event: TypeAlias = WebhookPing 15 | 16 | PingEvent: TypeAlias = Event 17 | 18 | action_types = WebhookPing 19 | 20 | ping_action_types = action_types 21 | 22 | __all__ = ("Event", "PingEvent", "action_types", "ping_action_types") 23 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/webhooks/push.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookPush 13 | 14 | Event: TypeAlias = WebhookPush 15 | 16 | PushEvent: TypeAlias = Event 17 | 18 | action_types = WebhookPush 19 | 20 | push_action_types = action_types 21 | 22 | __all__ = ("Event", "PushEvent", "action_types", "push_action_types") 23 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0914.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from githubkit.compat import GitHubModel, model_rebuild 13 | 14 | 15 | class GistsGistIdStarGetResponse404(GitHubModel): 16 | """GistsGistIdStarGetResponse404""" 17 | 18 | 19 | model_rebuild(GistsGistIdStarGetResponse404) 20 | 21 | __all__ = ("GistsGistIdStarGetResponse404",) 22 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_1071.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from githubkit.compat import GitHubModel, model_rebuild 13 | 14 | 15 | class GistsGistIdStarGetResponse404(GitHubModel): 16 | """GistsGistIdStarGetResponse404""" 17 | 18 | 19 | model_rebuild(GistsGistIdStarGetResponse404) 20 | 21 | __all__ = ("GistsGistIdStarGetResponse404",) 22 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/webhooks/create.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookCreate 13 | 14 | Event: TypeAlias = WebhookCreate 15 | 16 | CreateEvent: TypeAlias = Event 17 | 18 | action_types = WebhookCreate 19 | 20 | create_action_types = action_types 21 | 22 | __all__ = ("CreateEvent", "Event", "action_types", "create_action_types") 23 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/webhooks/delete.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookDelete 13 | 14 | Event: TypeAlias = WebhookDelete 15 | 16 | DeleteEvent: TypeAlias = Event 17 | 18 | action_types = WebhookDelete 19 | 20 | delete_action_types = action_types 21 | 22 | __all__ = ("DeleteEvent", "Event", "action_types", "delete_action_types") 23 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/webhooks/gollum.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookGollum 13 | 14 | Event: TypeAlias = WebhookGollum 15 | 16 | GollumEvent: TypeAlias = Event 17 | 18 | action_types = WebhookGollum 19 | 20 | gollum_action_types = action_types 21 | 22 | __all__ = ("Event", "GollumEvent", "action_types", "gollum_action_types") 23 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/webhooks/public.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookPublic 13 | 14 | Event: TypeAlias = WebhookPublic 15 | 16 | PublicEvent: TypeAlias = Event 17 | 18 | action_types = WebhookPublic 19 | 20 | public_action_types = action_types 21 | 22 | __all__ = ("Event", "PublicEvent", "action_types", "public_action_types") 23 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/webhooks/status.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookStatus 13 | 14 | Event: TypeAlias = WebhookStatus 15 | 16 | StatusEvent: TypeAlias = Event 17 | 18 | action_types = WebhookStatus 19 | 20 | status_action_types = action_types 21 | 22 | __all__ = ("Event", "StatusEvent", "action_types", "status_action_types") 23 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/webhooks/create.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookCreate 13 | 14 | Event: TypeAlias = WebhookCreate 15 | 16 | CreateEvent: TypeAlias = Event 17 | 18 | action_types = WebhookCreate 19 | 20 | create_action_types = action_types 21 | 22 | __all__ = ("CreateEvent", "Event", "action_types", "create_action_types") 23 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/webhooks/delete.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookDelete 13 | 14 | Event: TypeAlias = WebhookDelete 15 | 16 | DeleteEvent: TypeAlias = Event 17 | 18 | action_types = WebhookDelete 19 | 20 | delete_action_types = action_types 21 | 22 | __all__ = ("DeleteEvent", "Event", "action_types", "delete_action_types") 23 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/webhooks/gollum.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookGollum 13 | 14 | Event: TypeAlias = WebhookGollum 15 | 16 | GollumEvent: TypeAlias = Event 17 | 18 | action_types = WebhookGollum 19 | 20 | gollum_action_types = action_types 21 | 22 | __all__ = ("Event", "GollumEvent", "action_types", "gollum_action_types") 23 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/webhooks/public.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookPublic 13 | 14 | Event: TypeAlias = WebhookPublic 15 | 16 | PublicEvent: TypeAlias = Event 17 | 18 | action_types = WebhookPublic 19 | 20 | public_action_types = action_types 21 | 22 | __all__ = ("Event", "PublicEvent", "action_types", "public_action_types") 23 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/webhooks/status.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookStatus 13 | 14 | Event: TypeAlias = WebhookStatus 15 | 16 | StatusEvent: TypeAlias = Event 17 | 18 | action_types = WebhookStatus 19 | 20 | status_action_types = action_types 21 | 22 | __all__ = ("Event", "StatusEvent", "action_types", "status_action_types") 23 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0158.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class Link(GitHubModel): 18 | """Link 19 | 20 | Hypermedia Link 21 | """ 22 | 23 | href: str = Field() 24 | 25 | 26 | model_rebuild(Link) 27 | 28 | __all__ = ("Link",) 29 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/webhooks/meta.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookMetaDeleted 13 | 14 | Event: TypeAlias = WebhookMetaDeleted 15 | 16 | MetaEvent: TypeAlias = Event 17 | 18 | action_types = WebhookMetaDeleted 19 | 20 | meta_action_types = action_types 21 | 22 | __all__ = ("Event", "MetaEvent", "action_types", "meta_action_types") 23 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0290.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class Link(GitHubModel): 18 | """Link 19 | 20 | Hypermedia Link 21 | """ 22 | 23 | href: str = Field() 24 | 25 | 26 | model_rebuild(Link) 27 | 28 | __all__ = ("Link",) 29 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/webhooks/meta.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookMetaDeleted 13 | 14 | Event: TypeAlias = WebhookMetaDeleted 15 | 16 | MetaEvent: TypeAlias = Event 17 | 18 | action_types = WebhookMetaDeleted 19 | 20 | meta_action_types = action_types 21 | 22 | __all__ = ("Event", "MetaEvent", "action_types", "meta_action_types") 23 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/webhooks/team_add.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookTeamAdd 13 | 14 | Event: TypeAlias = WebhookTeamAdd 15 | 16 | TeamAddEvent: TypeAlias = Event 17 | 18 | action_types = WebhookTeamAdd 19 | 20 | team_add_action_types = action_types 21 | 22 | __all__ = ("Event", "TeamAddEvent", "action_types", "team_add_action_types") 23 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/webhooks/team_add.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookTeamAdd 13 | 14 | Event: TypeAlias = WebhookTeamAdd 15 | 16 | TeamAddEvent: TypeAlias = Event 17 | 18 | action_types = WebhookTeamAdd 19 | 20 | team_add_action_types = action_types 21 | 22 | __all__ = ("Event", "TeamAddEvent", "action_types", "team_add_action_types") 23 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/webhooks/watch.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookWatchStarted 13 | 14 | Event: TypeAlias = WebhookWatchStarted 15 | 16 | WatchEvent: TypeAlias = Event 17 | 18 | action_types = WebhookWatchStarted 19 | 20 | watch_action_types = action_types 21 | 22 | __all__ = ("Event", "WatchEvent", "action_types", "watch_action_types") 23 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/webhooks/watch.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookWatchStarted 13 | 14 | Event: TypeAlias = WebhookWatchStarted 15 | 16 | WatchEvent: TypeAlias = Event 17 | 18 | action_types = WebhookWatchStarted 19 | 20 | watch_action_types = action_types 21 | 22 | __all__ = ("Event", "WatchEvent", "action_types", "watch_action_types") 23 | -------------------------------------------------------------------------------- /.github/actions/setup-python/action.yml: -------------------------------------------------------------------------------- 1 | name: Setup Python 2 | description: Setup Python 3 | 4 | inputs: 5 | python-version: 6 | description: Python version 7 | required: false 8 | default: "3.12" 9 | env-group: 10 | description: Environment group 11 | required: false 12 | default: "pydantic-v2" 13 | 14 | runs: 15 | using: "composite" 16 | steps: 17 | - uses: astral-sh/setup-uv@v7 18 | with: 19 | python-version: ${{ inputs.python-version }} 20 | cache-suffix: ${{ inputs.env-group }} 21 | 22 | - run: | 23 | uv sync --all-extras --locked --group ${{ inputs.env-group }} 24 | shell: bash 25 | -------------------------------------------------------------------------------- /codegen/templates/latest/models.py.jinja: -------------------------------------------------------------------------------- 1 | {% from "header.jinja" import header %} 2 | 3 | """{{ header() }}""" 4 | 5 | from typing import TYPE_CHECKING 6 | 7 | from githubkit.lazy_module import is_lazy_disabled 8 | 9 | if TYPE_CHECKING or is_lazy_disabled(): 10 | {% for name in model_names %} 11 | from {{ output_module }}.{{ latest_version_module }}.models import {{ name }} as {{ name }} 12 | {% endfor %} 13 | else: 14 | __lazy_vars__ = { 15 | "{{ output_module }}.{{ latest_version_module }}.models": ( 16 | {% for name in model_names %} 17 | "{{ name }}", 18 | {% endfor %} 19 | ) 20 | } 21 | -------------------------------------------------------------------------------- /githubkit/versions/__init__.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing import Literal 11 | 12 | VERSIONS = { 13 | "2022-11-28": "v2022_11_28", 14 | "ghec-2022-11-28": "ghec_v2022_11_28", 15 | } 16 | LATEST_VERSION = "2022-11-28" 17 | VERSION_TYPE = Literal["2022-11-28", "ghec-2022-11-28"] 18 | 19 | from .rest import RestVersionSwitcher as RestVersionSwitcher 20 | from .webhooks import WebhooksVersionSwitcher as WebhooksVersionSwitcher 21 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/webhooks/page_build.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookPageBuild 13 | 14 | Event: TypeAlias = WebhookPageBuild 15 | 16 | PageBuildEvent: TypeAlias = Event 17 | 18 | action_types = WebhookPageBuild 19 | 20 | page_build_action_types = action_types 21 | 22 | __all__ = ("Event", "PageBuildEvent", "action_types", "page_build_action_types") 23 | -------------------------------------------------------------------------------- /codegen/templates/latest/types.py.jinja: -------------------------------------------------------------------------------- 1 | {% from "header.jinja" import header %} 2 | 3 | """{{ header() }}""" 4 | 5 | from typing import TYPE_CHECKING 6 | 7 | from githubkit.lazy_module import is_lazy_disabled 8 | 9 | if TYPE_CHECKING or is_lazy_disabled(): 10 | {% for name in model_names %} 11 | from {{ output_module }}.{{ latest_version_module }}.types import {{ name }}Type as {{ name }}Type 12 | {% endfor %} 13 | else: 14 | __lazy_vars__ = { 15 | "{{ output_module }}.{{ latest_version_module }}.types": ( 16 | {% for name in model_names %} 17 | "{{ name }}Type", 18 | {% endfor %} 19 | ) 20 | } 21 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/webhooks/page_build.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookPageBuild 13 | 14 | Event: TypeAlias = WebhookPageBuild 15 | 16 | PageBuildEvent: TypeAlias = Event 17 | 18 | action_types = WebhookPageBuild 19 | 20 | page_build_action_types = action_types 21 | 22 | __all__ = ("Event", "PageBuildEvent", "action_types", "page_build_action_types") 23 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_1264.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from githubkit.compat import GitHubModel, model_rebuild 13 | 14 | 15 | class UserInteractionLimitsGetResponse200Anyof1(GitHubModel): 16 | """UserInteractionLimitsGetResponse200Anyof1""" 17 | 18 | 19 | model_rebuild(UserInteractionLimitsGetResponse200Anyof1) 20 | 21 | __all__ = ("UserInteractionLimitsGetResponse200Anyof1",) 22 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_1433.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from githubkit.compat import GitHubModel, model_rebuild 13 | 14 | 15 | class UserInteractionLimitsGetResponse200Anyof1(GitHubModel): 16 | """UserInteractionLimitsGetResponse200Anyof1""" 17 | 18 | 19 | model_rebuild(UserInteractionLimitsGetResponse200Anyof1) 20 | 21 | __all__ = ("UserInteractionLimitsGetResponse200Anyof1",) 22 | -------------------------------------------------------------------------------- /githubkit/auth/__init__.py: -------------------------------------------------------------------------------- 1 | from .action import ActionAuthStrategy as ActionAuthStrategy 2 | from .app import AppAuthStrategy as AppAuthStrategy 3 | from .app import AppInstallationAuthStrategy as AppInstallationAuthStrategy 4 | from .base import BaseAuthStrategy as BaseAuthStrategy 5 | from .oauth import OAuthAppAuthStrategy as OAuthAppAuthStrategy 6 | from .oauth import OAuthDeviceAuthStrategy as OAuthDeviceAuthStrategy 7 | from .oauth import OAuthTokenAuthStrategy as OAuthTokenAuthStrategy 8 | from .oauth import OAuthWebAuthStrategy as OAuthWebAuthStrategy 9 | from .token import TokenAuthStrategy as TokenAuthStrategy 10 | from .unauth import UnauthAuthStrategy as UnauthAuthStrategy 11 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0334.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from githubkit.compat import ExtraGitHubModel, model_rebuild 13 | 14 | 15 | class Metadata(ExtraGitHubModel): 16 | """metadata 17 | 18 | User-defined metadata to store domain-specific information limited to 8 keys 19 | with scalar values. 20 | """ 21 | 22 | 23 | model_rebuild(Metadata) 24 | 25 | __all__ = ("Metadata",) 26 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0347.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ShortBlob(GitHubModel): 18 | """Short Blob 19 | 20 | Short Blob 21 | """ 22 | 23 | url: str = Field() 24 | sha: str = Field() 25 | 26 | 27 | model_rebuild(ShortBlob) 28 | 29 | __all__ = ("ShortBlob",) 30 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_1014.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from githubkit.compat import GitHubModel, model_rebuild 13 | 14 | 15 | class OrgsOrgInteractionLimitsGetResponse200Anyof1(GitHubModel): 16 | """OrgsOrgInteractionLimitsGetResponse200Anyof1""" 17 | 18 | 19 | model_rebuild(OrgsOrgInteractionLimitsGetResponse200Anyof1) 20 | 21 | __all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1",) 22 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0403.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from githubkit.compat import ExtraGitHubModel, model_rebuild 13 | 14 | 15 | class Metadata(ExtraGitHubModel): 16 | """metadata 17 | 18 | User-defined metadata to store domain-specific information limited to 8 keys 19 | with scalar values. 20 | """ 21 | 22 | 23 | model_rebuild(Metadata) 24 | 25 | __all__ = ("Metadata",) 26 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0416.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ShortBlob(GitHubModel): 18 | """Short Blob 19 | 20 | Short Blob 21 | """ 22 | 23 | url: str = Field() 24 | sha: str = Field() 25 | 26 | 27 | model_rebuild(ShortBlob) 28 | 29 | __all__ = ("ShortBlob",) 30 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_1169.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from githubkit.compat import GitHubModel, model_rebuild 13 | 14 | 15 | class OrgsOrgInteractionLimitsGetResponse200Anyof1(GitHubModel): 16 | """OrgsOrgInteractionLimitsGetResponse200Anyof1""" 17 | 18 | 19 | model_rebuild(OrgsOrgInteractionLimitsGetResponse200Anyof1) 20 | 21 | __all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1",) 22 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/webhooks/deployment.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookDeploymentCreated 13 | 14 | Event: TypeAlias = WebhookDeploymentCreated 15 | 16 | DeploymentEvent: TypeAlias = Event 17 | 18 | action_types = WebhookDeploymentCreated 19 | 20 | deployment_action_types = action_types 21 | 22 | __all__ = ("DeploymentEvent", "Event", "action_types", "deployment_action_types") 23 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/webhooks/deployment.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookDeploymentCreated 13 | 14 | Event: TypeAlias = WebhookDeploymentCreated 15 | 16 | DeploymentEvent: TypeAlias = Event 17 | 18 | action_types = WebhookDeploymentCreated 19 | 20 | deployment_action_types = action_types 21 | 22 | __all__ = ("DeploymentEvent", "Event", "action_types", "deployment_action_types") 23 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0442.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class Topic(GitHubModel): 18 | """Topic 19 | 20 | A topic aggregates entities that are related to a subject. 21 | """ 22 | 23 | names: list[str] = Field() 24 | 25 | 26 | model_rebuild(Topic) 27 | 28 | __all__ = ("Topic",) 29 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0511.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class Topic(GitHubModel): 18 | """Topic 19 | 20 | A topic aggregates entities that are related to a subject. 21 | """ 22 | 23 | names: list[str] = Field() 24 | 25 | 26 | model_rebuild(Topic) 27 | 28 | __all__ = ("Topic",) 29 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_1020.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from githubkit.compat import GitHubModel, model_rebuild 13 | 14 | 15 | class OrgsOrgOutsideCollaboratorsUsernamePutResponse202(GitHubModel): 16 | """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" 17 | 18 | 19 | model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutResponse202) 20 | 21 | __all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",) 22 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_1175.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from githubkit.compat import GitHubModel, model_rebuild 13 | 14 | 15 | class OrgsOrgOutsideCollaboratorsUsernamePutResponse202(GitHubModel): 16 | """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" 17 | 18 | 19 | model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutResponse202) 20 | 21 | __all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",) 22 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0438.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ParticipationStats(GitHubModel): 18 | """Participation Stats""" 19 | 20 | all_: list[int] = Field(alias="all") 21 | owner: list[int] = Field() 22 | 23 | 24 | model_rebuild(ParticipationStats) 25 | 26 | __all__ = ("ParticipationStats",) 27 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0888.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from githubkit.compat import GitHubModel, model_rebuild 13 | 14 | 15 | class AppHookDeliveriesDeliveryIdAttemptsPostResponse202(GitHubModel): 16 | """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" 17 | 18 | 19 | model_rebuild(AppHookDeliveriesDeliveryIdAttemptsPostResponse202) 20 | 21 | __all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",) 22 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0507.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ParticipationStats(GitHubModel): 18 | """Participation Stats""" 19 | 20 | all_: list[int] = Field(alias="all") 21 | owner: list[int] = Field() 22 | 23 | 24 | model_rebuild(ParticipationStats) 25 | 26 | __all__ = ("ParticipationStats",) 27 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0979.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from githubkit.compat import GitHubModel, model_rebuild 13 | 14 | 15 | class AppHookDeliveriesDeliveryIdAttemptsPostResponse202(GitHubModel): 16 | """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" 17 | 18 | 19 | model_rebuild(AppHookDeliveriesDeliveryIdAttemptsPostResponse202) 20 | 21 | __all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",) 22 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0245.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class RateLimit(GitHubModel): 18 | """Rate Limit""" 19 | 20 | limit: int = Field() 21 | remaining: int = Field() 22 | reset: int = Field() 23 | used: int = Field() 24 | 25 | 26 | model_rebuild(RateLimit) 27 | 28 | __all__ = ("RateLimit",) 29 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0465.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class SocialAccount(GitHubModel): 18 | """Social account 19 | 20 | Social media account 21 | """ 22 | 23 | provider: str = Field() 24 | url: str = Field() 25 | 26 | 27 | model_rebuild(SocialAccount) 28 | 29 | __all__ = ("SocialAccount",) 30 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_1165.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from githubkit.compat import GitHubModel, model_rebuild 13 | 14 | 15 | class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1(GitHubModel): 16 | """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" 17 | 18 | 19 | model_rebuild(ReposOwnerRepoInteractionLimitsGetResponse200Anyof1) 20 | 21 | __all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",) 22 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/webhooks/commit_comment.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookCommitCommentCreated 13 | 14 | Event: TypeAlias = WebhookCommitCommentCreated 15 | 16 | CommitCommentEvent: TypeAlias = Event 17 | 18 | action_types = WebhookCommitCommentCreated 19 | 20 | commit_comment_action_types = action_types 21 | 22 | __all__ = ("CommitCommentEvent", "Event", "action_types", "commit_comment_action_types") 23 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0314.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class RateLimit(GitHubModel): 18 | """Rate Limit""" 19 | 20 | limit: int = Field() 21 | remaining: int = Field() 22 | reset: int = Field() 23 | used: int = Field() 24 | 25 | 26 | model_rebuild(RateLimit) 27 | 28 | __all__ = ("RateLimit",) 29 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0548.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class SocialAccount(GitHubModel): 18 | """Social account 19 | 20 | Social media account 21 | """ 22 | 23 | provider: str = Field() 24 | url: str = Field() 25 | 26 | 27 | model_rebuild(SocialAccount) 28 | 29 | __all__ = ("SocialAccount",) 30 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_1330.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from githubkit.compat import GitHubModel, model_rebuild 13 | 14 | 15 | class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1(GitHubModel): 16 | """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" 17 | 18 | 19 | model_rebuild(ReposOwnerRepoInteractionLimitsGetResponse200Anyof1) 20 | 21 | __all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",) 22 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/webhooks/commit_comment.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookCommitCommentCreated 13 | 14 | Event: TypeAlias = WebhookCommitCommentCreated 15 | 16 | CommitCommentEvent: TypeAlias = Event 17 | 18 | action_types = WebhookCommitCommentCreated 19 | 20 | commit_comment_action_types = action_types 21 | 22 | __all__ = ("CommitCommentEvent", "Event", "action_types", "commit_comment_action_types") 23 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0231.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from githubkit.compat import GitHubModel, model_rebuild 13 | 14 | 15 | class RulesetVersionWithStateAllof1PropState(GitHubModel): 16 | """RulesetVersionWithStateAllof1PropState 17 | 18 | The state of the ruleset version 19 | """ 20 | 21 | 22 | model_rebuild(RulesetVersionWithStateAllof1PropState) 23 | 24 | __all__ = ("RulesetVersionWithStateAllof1PropState",) 25 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0390.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class PageBuildStatus(GitHubModel): 18 | """Page Build Status 19 | 20 | Page Build Status 21 | """ 22 | 23 | url: str = Field() 24 | status: str = Field() 25 | 26 | 27 | model_rebuild(PageBuildStatus) 28 | 29 | __all__ = ("PageBuildStatus",) 30 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0443.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | import datetime as _dt 13 | 14 | from pydantic import Field 15 | 16 | from githubkit.compat import GitHubModel, model_rebuild 17 | 18 | 19 | class Traffic(GitHubModel): 20 | """Traffic""" 21 | 22 | timestamp: _dt.datetime = Field() 23 | uniques: int = Field() 24 | count: int = Field() 25 | 26 | 27 | model_rebuild(Traffic) 28 | 29 | __all__ = ("Traffic",) 30 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/types/group_0385.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing import Any 13 | from typing_extensions import TypeAlias 14 | 15 | LanguageType: TypeAlias = dict[str, Any] 16 | """Language 17 | 18 | Language 19 | """ 20 | 21 | 22 | LanguageTypeForResponse: TypeAlias = dict[str, Any] 23 | """Language 24 | 25 | Language 26 | """ 27 | 28 | 29 | __all__ = ( 30 | "LanguageType", 31 | "LanguageTypeForResponse", 32 | ) 33 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0176.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from githubkit.compat import GitHubModel, model_rebuild 13 | 14 | 15 | class RulesetVersionWithStateAllof1PropState(GitHubModel): 16 | """RulesetVersionWithStateAllof1PropState 17 | 18 | The state of the ruleset version 19 | """ 20 | 21 | 22 | model_rebuild(RulesetVersionWithStateAllof1PropState) 23 | 24 | __all__ = ("RulesetVersionWithStateAllof1PropState",) 25 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0459.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class PageBuildStatus(GitHubModel): 18 | """Page Build Status 19 | 20 | Page Build Status 21 | """ 22 | 23 | url: str = Field() 24 | status: str = Field() 25 | 26 | 27 | model_rebuild(PageBuildStatus) 28 | 29 | __all__ = ("PageBuildStatus",) 30 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0512.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | import datetime as _dt 13 | 14 | from pydantic import Field 15 | 16 | from githubkit.compat import GitHubModel, model_rebuild 17 | 18 | 19 | class Traffic(GitHubModel): 20 | """Traffic""" 21 | 22 | timestamp: _dt.datetime = Field() 23 | uniques: int = Field() 24 | count: int = Field() 25 | 26 | 27 | model_rebuild(Traffic) 28 | 29 | __all__ = ("Traffic",) 30 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/types/group_0454.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing import Any 13 | from typing_extensions import TypeAlias 14 | 15 | LanguageType: TypeAlias = dict[str, Any] 16 | """Language 17 | 18 | Language 19 | """ 20 | 21 | 22 | LanguageTypeForResponse: TypeAlias = dict[str, Any] 23 | """Language 24 | 25 | Language 26 | """ 27 | 28 | 29 | __all__ = ( 30 | "LanguageType", 31 | "LanguageTypeForResponse", 32 | ) 33 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0059.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | from .group_0060 import ForkEventPropForkee 17 | 18 | 19 | class ForkEvent(GitHubModel): 20 | """ForkEvent""" 21 | 22 | action: str = Field() 23 | forkee: ForkEventPropForkee = Field() 24 | 25 | 26 | model_rebuild(ForkEvent) 27 | 28 | __all__ = ("ForkEvent",) 29 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0210.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | from .group_0211 import ForkEventPropForkee 17 | 18 | 19 | class ForkEvent(GitHubModel): 20 | """ForkEvent""" 21 | 22 | action: str = Field() 23 | forkee: ForkEventPropForkee = Field() 24 | 25 | 26 | model_rebuild(ForkEvent) 27 | 28 | __all__ = ("ForkEvent",) 29 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0077.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class GitignoreTemplate(GitHubModel): 18 | """Gitignore Template 19 | 20 | Gitignore Template 21 | """ 22 | 23 | name: str = Field() 24 | source: str = Field() 25 | 26 | 27 | model_rebuild(GitignoreTemplate) 28 | 29 | __all__ = ("GitignoreTemplate",) 30 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0060.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class AuditLogStreamKey(GitHubModel): 18 | """stream-key 19 | 20 | Audit Log Streaming Public Key 21 | """ 22 | 23 | key_id: str = Field() 24 | key: str = Field() 25 | 26 | 27 | model_rebuild(AuditLogStreamKey) 28 | 29 | __all__ = ("AuditLogStreamKey",) 30 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0228.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class GitignoreTemplate(GitHubModel): 18 | """Gitignore Template 19 | 20 | Gitignore Template 21 | """ 22 | 23 | name: str = Field() 24 | source: str = Field() 25 | 26 | 27 | model_rebuild(GitignoreTemplate) 28 | 29 | __all__ = ("GitignoreTemplate",) 30 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0912.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class GistsGistIdCommentsPostBody(GitHubModel): 18 | """GistsGistIdCommentsPostBody""" 19 | 20 | body: str = Field(max_length=65535, description="The comment text.") 21 | 22 | 23 | model_rebuild(GistsGistIdCommentsPostBody) 24 | 25 | __all__ = ("GistsGistIdCommentsPostBody",) 26 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/types/group_0158.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing_extensions import TypedDict 13 | 14 | 15 | class LinkType(TypedDict): 16 | """Link 17 | 18 | Hypermedia Link 19 | """ 20 | 21 | href: str 22 | 23 | 24 | class LinkTypeForResponse(TypedDict): 25 | """Link 26 | 27 | Hypermedia Link 28 | """ 29 | 30 | href: str 31 | 32 | 33 | __all__ = ( 34 | "LinkType", 35 | "LinkTypeForResponse", 36 | ) 37 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_1069.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class GistsGistIdCommentsPostBody(GitHubModel): 18 | """GistsGistIdCommentsPostBody""" 19 | 20 | body: str = Field(max_length=65535, description="The comment text.") 21 | 22 | 23 | model_rebuild(GistsGistIdCommentsPostBody) 24 | 25 | __all__ = ("GistsGistIdCommentsPostBody",) 26 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/types/group_0290.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing_extensions import TypedDict 13 | 14 | 15 | class LinkType(TypedDict): 16 | """Link 17 | 18 | Hypermedia Link 19 | """ 20 | 21 | href: str 22 | 23 | 24 | class LinkTypeForResponse(TypedDict): 25 | """Link 26 | 27 | Hypermedia Link 28 | """ 29 | 30 | href: str 31 | 32 | 33 | __all__ = ( 34 | "LinkType", 35 | "LinkTypeForResponse", 36 | ) 37 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0068.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | from .group_0069 import ReleaseEventPropRelease 17 | 18 | 19 | class ReleaseEvent(GitHubModel): 20 | """ReleaseEvent""" 21 | 22 | action: str = Field() 23 | release: ReleaseEventPropRelease = Field() 24 | 25 | 26 | model_rebuild(ReleaseEvent) 27 | 28 | __all__ = ("ReleaseEvent",) 29 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0436.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class CommitActivity(GitHubModel): 18 | """Commit Activity 19 | 20 | Commit Activity 21 | """ 22 | 23 | days: list[int] = Field() 24 | total: int = Field() 25 | week: int = Field() 26 | 27 | 28 | model_rebuild(CommitActivity) 29 | 30 | __all__ = ("CommitActivity",) 31 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/types/group_0093.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing_extensions import TypedDict 13 | 14 | 15 | class DeleteBudgetType(TypedDict): 16 | """DeleteBudget""" 17 | 18 | message: str 19 | id: str 20 | 21 | 22 | class DeleteBudgetTypeForResponse(TypedDict): 23 | """DeleteBudget""" 24 | 25 | message: str 26 | id: str 27 | 28 | 29 | __all__ = ( 30 | "DeleteBudgetType", 31 | "DeleteBudgetTypeForResponse", 32 | ) 33 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0219.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | from .group_0220 import ReleaseEventPropRelease 17 | 18 | 19 | class ReleaseEvent(GitHubModel): 20 | """ReleaseEvent""" 21 | 22 | action: str = Field() 23 | release: ReleaseEventPropRelease = Field() 24 | 25 | 26 | model_rebuild(ReleaseEvent) 27 | 28 | __all__ = ("ReleaseEvent",) 29 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0505.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class CommitActivity(GitHubModel): 18 | """Commit Activity 19 | 20 | Commit Activity 21 | """ 22 | 23 | days: list[int] = Field() 24 | total: int = Field() 25 | week: int = Field() 26 | 27 | 28 | model_rebuild(CommitActivity) 29 | 30 | __all__ = ("CommitActivity",) 31 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/types/group_0187.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing_extensions import TypedDict 13 | 14 | 15 | class DeleteBudgetType(TypedDict): 16 | """DeleteBudget""" 17 | 18 | message: str 19 | id: str 20 | 21 | 22 | class DeleteBudgetTypeForResponse(TypedDict): 23 | """DeleteBudget""" 24 | 25 | message: str 26 | id: str 27 | 28 | 29 | __all__ = ( 30 | "DeleteBudgetType", 31 | "DeleteBudgetTypeForResponse", 32 | ) 33 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/types/group_0896.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing import Any 13 | from typing_extensions import TypeAlias 14 | 15 | EmojisGetResponse200Type: TypeAlias = dict[str, Any] 16 | """EmojisGetResponse200 17 | """ 18 | 19 | 20 | EmojisGetResponse200TypeForResponse: TypeAlias = dict[str, Any] 21 | """EmojisGetResponse200 22 | """ 23 | 24 | 25 | __all__ = ( 26 | "EmojisGetResponse200Type", 27 | "EmojisGetResponse200TypeForResponse", 28 | ) 29 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/types/group_0987.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing import Any 13 | from typing_extensions import TypeAlias 14 | 15 | EmojisGetResponse200Type: TypeAlias = dict[str, Any] 16 | """EmojisGetResponse200 17 | """ 18 | 19 | 20 | EmojisGetResponse200TypeForResponse: TypeAlias = dict[str, Any] 21 | """EmojisGetResponse200 22 | """ 23 | 24 | 25 | __all__ = ( 26 | "EmojisGetResponse200Type", 27 | "EmojisGetResponse200TypeForResponse", 28 | ) 29 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0446.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ReferrerTraffic(GitHubModel): 18 | """Referrer Traffic 19 | 20 | Referrer Traffic 21 | """ 22 | 23 | referrer: str = Field() 24 | count: int = Field() 25 | uniques: int = Field() 26 | 27 | 28 | model_rebuild(ReferrerTraffic) 29 | 30 | __all__ = ("ReferrerTraffic",) 31 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0515.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ReferrerTraffic(GitHubModel): 18 | """Referrer Traffic 19 | 20 | Referrer Traffic 21 | """ 22 | 23 | referrer: str = Field() 24 | count: int = Field() 25 | uniques: int = Field() 26 | 27 | 28 | model_rebuild(ReferrerTraffic) 29 | 30 | __all__ = ("ReferrerTraffic",) 31 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_1111.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ReposOwnerRepoCheckSuitesPostBody(GitHubModel): 18 | """ReposOwnerRepoCheckSuitesPostBody""" 19 | 20 | head_sha: str = Field(description="The sha of the head commit.") 21 | 22 | 23 | model_rebuild(ReposOwnerRepoCheckSuitesPostBody) 24 | 25 | __all__ = ("ReposOwnerRepoCheckSuitesPostBody",) 26 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/types/group_0914.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing_extensions import TypedDict 13 | 14 | 15 | class GistsGistIdStarGetResponse404Type(TypedDict): 16 | """GistsGistIdStarGetResponse404""" 17 | 18 | 19 | class GistsGistIdStarGetResponse404TypeForResponse(TypedDict): 20 | """GistsGistIdStarGetResponse404""" 21 | 22 | 23 | __all__ = ( 24 | "GistsGistIdStarGetResponse404Type", 25 | "GistsGistIdStarGetResponse404TypeForResponse", 26 | ) 27 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_1270.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ReposOwnerRepoCheckSuitesPostBody(GitHubModel): 18 | """ReposOwnerRepoCheckSuitesPostBody""" 19 | 20 | head_sha: str = Field(description="The sha of the head commit.") 21 | 22 | 23 | model_rebuild(ReposOwnerRepoCheckSuitesPostBody) 24 | 25 | __all__ = ("ReposOwnerRepoCheckSuitesPostBody",) 26 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/types/group_1071.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing_extensions import TypedDict 13 | 14 | 15 | class GistsGistIdStarGetResponse404Type(TypedDict): 16 | """GistsGistIdStarGetResponse404""" 17 | 18 | 19 | class GistsGistIdStarGetResponse404TypeForResponse(TypedDict): 20 | """GistsGistIdStarGetResponse404""" 21 | 22 | 23 | __all__ = ( 24 | "GistsGistIdStarGetResponse404Type", 25 | "GistsGistIdStarGetResponse404TypeForResponse", 26 | ) 27 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0061.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | from .group_0003 import SimpleUser 17 | 18 | 19 | class MemberEvent(GitHubModel): 20 | """MemberEvent""" 21 | 22 | action: str = Field() 23 | member: SimpleUser = Field(title="Simple User", description="A GitHub user.") 24 | 25 | 26 | model_rebuild(MemberEvent) 27 | 28 | __all__ = ("MemberEvent",) 29 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0106.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ActionsArtifactAndLogRetention(GitHubModel): 18 | """ActionsArtifactAndLogRetention""" 19 | 20 | days: int = Field(description="The number of days to retain artifacts and logs") 21 | 22 | 23 | model_rebuild(ActionsArtifactAndLogRetention) 24 | 25 | __all__ = ("ActionsArtifactAndLogRetention",) 26 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/webhooks/repository_import.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookRepositoryImport 13 | 14 | Event: TypeAlias = WebhookRepositoryImport 15 | 16 | RepositoryImportEvent: TypeAlias = Event 17 | 18 | action_types = WebhookRepositoryImport 19 | 20 | repository_import_action_types = action_types 21 | 22 | __all__ = ( 23 | "Event", 24 | "RepositoryImportEvent", 25 | "action_types", 26 | "repository_import_action_types", 27 | ) 28 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/webhooks/workflow_dispatch.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookWorkflowDispatch 13 | 14 | Event: TypeAlias = WebhookWorkflowDispatch 15 | 16 | WorkflowDispatchEvent: TypeAlias = Event 17 | 18 | action_types = WebhookWorkflowDispatch 19 | 20 | workflow_dispatch_action_types = action_types 21 | 22 | __all__ = ( 23 | "Event", 24 | "WorkflowDispatchEvent", 25 | "action_types", 26 | "workflow_dispatch_action_types", 27 | ) 28 | -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- 1 | default_install_hook_types: [pre-commit, prepare-commit-msg] 2 | ci: 3 | autofix_commit_msg: ":rotating_light: auto fix by pre-commit hooks" 4 | autofix_prs: true 5 | autoupdate_branch: master 6 | autoupdate_schedule: monthly 7 | autoupdate_commit_msg: ":arrow_up: auto update by pre-commit hooks" 8 | repos: 9 | - repo: https://github.com/astral-sh/ruff-pre-commit 10 | rev: v0.14.8 11 | hooks: 12 | - id: ruff-check 13 | args: [--fix, --exit-non-zero-on-fix] 14 | stages: [pre-commit] 15 | - id: ruff-format 16 | stages: [pre-commit] 17 | 18 | - repo: https://github.com/nonebot/nonemoji 19 | rev: v0.1.4 20 | hooks: 21 | - id: nonemoji 22 | stages: [prepare-commit-msg] 23 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0042.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ActionsArtifactAndLogRetention(GitHubModel): 18 | """ActionsArtifactAndLogRetention""" 19 | 20 | days: int = Field(description="The number of days to retain artifacts and logs") 21 | 22 | 23 | model_rebuild(ActionsArtifactAndLogRetention) 24 | 25 | __all__ = ("ActionsArtifactAndLogRetention",) 26 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0212.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | from .group_0003 import SimpleUser 17 | 18 | 19 | class MemberEvent(GitHubModel): 20 | """MemberEvent""" 21 | 22 | action: str = Field() 23 | member: SimpleUser = Field(title="Simple User", description="A GitHub user.") 24 | 25 | 26 | model_rebuild(MemberEvent) 27 | 28 | __all__ = ("MemberEvent",) 29 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/webhooks/repository_import.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookRepositoryImport 13 | 14 | Event: TypeAlias = WebhookRepositoryImport 15 | 16 | RepositoryImportEvent: TypeAlias = Event 17 | 18 | action_types = WebhookRepositoryImport 19 | 20 | repository_import_action_types = action_types 21 | 22 | __all__ = ( 23 | "Event", 24 | "RepositoryImportEvent", 25 | "action_types", 26 | "repository_import_action_types", 27 | ) 28 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/webhooks/workflow_dispatch.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookWorkflowDispatch 13 | 14 | Event: TypeAlias = WebhookWorkflowDispatch 15 | 16 | WorkflowDispatchEvent: TypeAlias = Event 17 | 18 | action_types = WebhookWorkflowDispatch 19 | 20 | workflow_dispatch_action_types = action_types 21 | 22 | __all__ = ( 23 | "Event", 24 | "WorkflowDispatchEvent", 25 | "action_types", 26 | "workflow_dispatch_action_types", 27 | ) 28 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0353.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing import Union 13 | 14 | from pydantic import Field 15 | 16 | from githubkit.compat import GitHubModel, model_rebuild 17 | 18 | 19 | class HookResponse(GitHubModel): 20 | """Hook Response""" 21 | 22 | code: Union[int, None] = Field() 23 | status: Union[str, None] = Field() 24 | message: Union[str, None] = Field() 25 | 26 | 27 | model_rebuild(HookResponse) 28 | 29 | __all__ = ("HookResponse",) 30 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0422.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing import Union 13 | 14 | from pydantic import Field 15 | 16 | from githubkit.compat import GitHubModel, model_rebuild 17 | 18 | 19 | class HookResponse(GitHubModel): 20 | """Hook Response""" 21 | 22 | code: Union[int, None] = Field() 23 | status: Union[str, None] = Field() 24 | message: Union[str, None] = Field() 25 | 26 | 27 | model_rebuild(HookResponse) 28 | 29 | __all__ = ("HookResponse",) 30 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0445.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ContentTraffic(GitHubModel): 18 | """Content Traffic 19 | 20 | Content Traffic 21 | """ 22 | 23 | path: str = Field() 24 | title: str = Field() 25 | count: int = Field() 26 | uniques: int = Field() 27 | 28 | 29 | model_rebuild(ContentTraffic) 30 | 31 | __all__ = ("ContentTraffic",) 32 | -------------------------------------------------------------------------------- /codegen/templates/models/models.py.jinja: -------------------------------------------------------------------------------- 1 | {% from "header.jinja" import header %} 2 | 3 | """{{ header() }}""" 4 | 5 | from typing import TYPE_CHECKING 6 | 7 | from githubkit.lazy_module import is_lazy_disabled 8 | 9 | if TYPE_CHECKING or is_lazy_disabled(): 10 | {% for group in groups %} 11 | {% for model in group.models %} 12 | from .{{ group_name(group, groups) }} import {{ model.class_name }} as {{ model.class_name }} 13 | {% endfor %} 14 | {% endfor %} 15 | else: 16 | __lazy_vars__ = { 17 | {% for group in groups %} 18 | ".{{ group_name(group, groups) }}": ( 19 | {% for model in group.models %} 20 | "{{ model.class_name }}", 21 | {% endfor %} 22 | ), 23 | {% endfor %} 24 | } 25 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0514.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ContentTraffic(GitHubModel): 18 | """Content Traffic 19 | 20 | Content Traffic 21 | """ 22 | 23 | path: str = Field() 24 | title: str = Field() 25 | count: int = Field() 26 | uniques: int = Field() 27 | 28 | 29 | model_rebuild(ContentTraffic) 30 | 31 | __all__ = ("ContentTraffic",) 32 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0066.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | from .group_0067 import CommitCommentEventPropComment 17 | 18 | 19 | class CommitCommentEvent(GitHubModel): 20 | """CommitCommentEvent""" 21 | 22 | action: str = Field() 23 | comment: CommitCommentEventPropComment = Field() 24 | 25 | 26 | model_rebuild(CommitCommentEvent) 27 | 28 | __all__ = ("CommitCommentEvent",) 29 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0358.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class PorterLargeFile(GitHubModel): 18 | """Porter Large File 19 | 20 | Porter Large File 21 | """ 22 | 23 | ref_name: str = Field() 24 | path: str = Field() 25 | oid: str = Field() 26 | size: int = Field() 27 | 28 | 29 | model_rebuild(PorterLargeFile) 30 | 31 | __all__ = ("PorterLargeFile",) 32 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0913.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class GistsGistIdCommentsCommentIdPatchBody(GitHubModel): 18 | """GistsGistIdCommentsCommentIdPatchBody""" 19 | 20 | body: str = Field(max_length=65535, description="The comment text.") 21 | 22 | 23 | model_rebuild(GistsGistIdCommentsCommentIdPatchBody) 24 | 25 | __all__ = ("GistsGistIdCommentsCommentIdPatchBody",) 26 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0217.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | from .group_0218 import CommitCommentEventPropComment 17 | 18 | 19 | class CommitCommentEvent(GitHubModel): 20 | """CommitCommentEvent""" 21 | 22 | action: str = Field() 23 | comment: CommitCommentEventPropComment = Field() 24 | 25 | 26 | model_rebuild(CommitCommentEvent) 27 | 28 | __all__ = ("CommitCommentEvent",) 29 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0427.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class PorterLargeFile(GitHubModel): 18 | """Porter Large File 19 | 20 | Porter Large File 21 | """ 22 | 23 | ref_name: str = Field() 24 | path: str = Field() 25 | oid: str = Field() 26 | size: int = Field() 27 | 28 | 29 | model_rebuild(PorterLargeFile) 30 | 31 | __all__ = ("PorterLargeFile",) 32 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_1070.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class GistsGistIdCommentsCommentIdPatchBody(GitHubModel): 18 | """GistsGistIdCommentsCommentIdPatchBody""" 19 | 20 | body: str = Field(max_length=65535, description="The comment text.") 21 | 22 | 23 | model_rebuild(GistsGistIdCommentsCommentIdPatchBody) 24 | 25 | __all__ = ("GistsGistIdCommentsCommentIdPatchBody",) 26 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0447.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | from .group_0443 import Traffic 17 | 18 | 19 | class ViewTraffic(GitHubModel): 20 | """View Traffic 21 | 22 | View Traffic 23 | """ 24 | 25 | count: int = Field() 26 | uniques: int = Field() 27 | views: list[Traffic] = Field() 28 | 29 | 30 | model_rebuild(ViewTraffic) 31 | 32 | __all__ = ("ViewTraffic",) 33 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0461.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing import Union 13 | 14 | from pydantic import Field 15 | 16 | from githubkit.compat import GitHubModel, model_rebuild 17 | 18 | 19 | class Email(GitHubModel): 20 | """Email 21 | 22 | Email 23 | """ 24 | 25 | email: str = Field() 26 | primary: bool = Field() 27 | verified: bool = Field() 28 | visibility: Union[str, None] = Field() 29 | 30 | 31 | model_rebuild(Email) 32 | 33 | __all__ = ("Email",) 34 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_1128.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ReposOwnerRepoCommentsCommentIdPatchBody(GitHubModel): 18 | """ReposOwnerRepoCommentsCommentIdPatchBody""" 19 | 20 | body: str = Field(description="The contents of the comment") 21 | 22 | 23 | model_rebuild(ReposOwnerRepoCommentsCommentIdPatchBody) 24 | 25 | __all__ = ("ReposOwnerRepoCommentsCommentIdPatchBody",) 26 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/webhooks/deployment_status.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookDeploymentStatusCreated 13 | 14 | Event: TypeAlias = WebhookDeploymentStatusCreated 15 | 16 | DeploymentStatusEvent: TypeAlias = Event 17 | 18 | action_types = WebhookDeploymentStatusCreated 19 | 20 | deployment_status_action_types = action_types 21 | 22 | __all__ = ( 23 | "DeploymentStatusEvent", 24 | "Event", 25 | "action_types", 26 | "deployment_status_action_types", 27 | ) 28 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0516.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | from .group_0512 import Traffic 17 | 18 | 19 | class ViewTraffic(GitHubModel): 20 | """View Traffic 21 | 22 | View Traffic 23 | """ 24 | 25 | count: int = Field() 26 | uniques: int = Field() 27 | views: list[Traffic] = Field() 28 | 29 | 30 | model_rebuild(ViewTraffic) 31 | 32 | __all__ = ("ViewTraffic",) 33 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0544.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing import Union 13 | 14 | from pydantic import Field 15 | 16 | from githubkit.compat import GitHubModel, model_rebuild 17 | 18 | 19 | class Email(GitHubModel): 20 | """Email 21 | 22 | Email 23 | """ 24 | 25 | email: str = Field() 26 | primary: bool = Field() 27 | verified: bool = Field() 28 | visibility: Union[str, None] = Field() 29 | 30 | 31 | model_rebuild(Email) 32 | 33 | __all__ = ("Email",) 34 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_1287.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ReposOwnerRepoCommentsCommentIdPatchBody(GitHubModel): 18 | """ReposOwnerRepoCommentsCommentIdPatchBody""" 19 | 20 | body: str = Field(description="The contents of the comment") 21 | 22 | 23 | model_rebuild(ReposOwnerRepoCommentsCommentIdPatchBody) 24 | 25 | __all__ = ("ReposOwnerRepoCommentsCommentIdPatchBody",) 26 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/webhooks/deployment_status.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookDeploymentStatusCreated 13 | 14 | Event: TypeAlias = WebhookDeploymentStatusCreated 15 | 16 | DeploymentStatusEvent: TypeAlias = Event 17 | 18 | action_types = WebhookDeploymentStatusCreated 19 | 20 | deployment_status_action_types = action_types 21 | 22 | __all__ = ( 23 | "DeploymentStatusEvent", 24 | "Event", 25 | "action_types", 26 | "deployment_status_action_types", 27 | ) 28 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0398.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class PullRequestMergeResult(GitHubModel): 18 | """Pull Request Merge Result 19 | 20 | Pull Request Merge Result 21 | """ 22 | 23 | sha: str = Field() 24 | merged: bool = Field() 25 | message: str = Field() 26 | 27 | 28 | model_rebuild(PullRequestMergeResult) 29 | 30 | __all__ = ("PullRequestMergeResult",) 31 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0444.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | from .group_0443 import Traffic 17 | 18 | 19 | class CloneTraffic(GitHubModel): 20 | """Clone Traffic 21 | 22 | Clone Traffic 23 | """ 24 | 25 | count: int = Field() 26 | uniques: int = Field() 27 | clones: list[Traffic] = Field() 28 | 29 | 30 | model_rebuild(CloneTraffic) 31 | 32 | __all__ = ("CloneTraffic",) 33 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/webhooks/security_and_analysis.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookSecurityAndAnalysis 13 | 14 | Event: TypeAlias = WebhookSecurityAndAnalysis 15 | 16 | SecurityAndAnalysisEvent: TypeAlias = Event 17 | 18 | action_types = WebhookSecurityAndAnalysis 19 | 20 | security_and_analysis_action_types = action_types 21 | 22 | __all__ = ( 23 | "Event", 24 | "SecurityAndAnalysisEvent", 25 | "action_types", 26 | "security_and_analysis_action_types", 27 | ) 28 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0467.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class PullRequestMergeResult(GitHubModel): 18 | """Pull Request Merge Result 19 | 20 | Pull Request Merge Result 21 | """ 22 | 23 | sha: str = Field() 24 | merged: bool = Field() 25 | message: str = Field() 26 | 27 | 28 | model_rebuild(PullRequestMergeResult) 29 | 30 | __all__ = ("PullRequestMergeResult",) 31 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0513.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | from .group_0512 import Traffic 17 | 18 | 19 | class CloneTraffic(GitHubModel): 20 | """Clone Traffic 21 | 22 | Clone Traffic 23 | """ 24 | 25 | count: int = Field() 26 | uniques: int = Field() 27 | clones: list[Traffic] = Field() 28 | 29 | 30 | model_rebuild(CloneTraffic) 31 | 32 | __all__ = ("CloneTraffic",) 33 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_1210.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class OrgsOrgTeamsTeamSlugExternalGroupsPatchBody(GitHubModel): 18 | """OrgsOrgTeamsTeamSlugExternalGroupsPatchBody""" 19 | 20 | group_id: int = Field(description="External Group Id") 21 | 22 | 23 | model_rebuild(OrgsOrgTeamsTeamSlugExternalGroupsPatchBody) 24 | 25 | __all__ = ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBody",) 26 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/webhooks/security_and_analysis.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookSecurityAndAnalysis 13 | 14 | Event: TypeAlias = WebhookSecurityAndAnalysis 15 | 16 | SecurityAndAnalysisEvent: TypeAlias = Event 17 | 18 | action_types = WebhookSecurityAndAnalysis 19 | 20 | security_and_analysis_action_types = action_types 21 | 22 | __all__ = ( 23 | "Event", 24 | "SecurityAndAnalysisEvent", 25 | "action_types", 26 | "security_and_analysis_action_types", 27 | ) 28 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_1104.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ReposOwnerRepoBranchesBranchRenamePostBody(GitHubModel): 18 | """ReposOwnerRepoBranchesBranchRenamePostBody""" 19 | 20 | new_name: str = Field(description="The new name of the branch.") 21 | 22 | 23 | model_rebuild(ReposOwnerRepoBranchesBranchRenamePostBody) 24 | 25 | __all__ = ("ReposOwnerRepoBranchesBranchRenamePostBody",) 26 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_1248.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | from .group_0129 import Codespace 17 | 18 | 19 | class UserCodespacesGetResponse200(GitHubModel): 20 | """UserCodespacesGetResponse200""" 21 | 22 | total_count: int = Field() 23 | codespaces: list[Codespace] = Field() 24 | 25 | 26 | model_rebuild(UserCodespacesGetResponse200) 27 | 28 | __all__ = ("UserCodespacesGetResponse200",) 29 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/types/group_0347.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing_extensions import TypedDict 13 | 14 | 15 | class ShortBlobType(TypedDict): 16 | """Short Blob 17 | 18 | Short Blob 19 | """ 20 | 21 | url: str 22 | sha: str 23 | 24 | 25 | class ShortBlobTypeForResponse(TypedDict): 26 | """Short Blob 27 | 28 | Short Blob 29 | """ 30 | 31 | url: str 32 | sha: str 33 | 34 | 35 | __all__ = ( 36 | "ShortBlobType", 37 | "ShortBlobTypeForResponse", 38 | ) 39 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/types/group_0912.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing_extensions import TypedDict 13 | 14 | 15 | class GistsGistIdCommentsPostBodyType(TypedDict): 16 | """GistsGistIdCommentsPostBody""" 17 | 18 | body: str 19 | 20 | 21 | class GistsGistIdCommentsPostBodyTypeForResponse(TypedDict): 22 | """GistsGistIdCommentsPostBody""" 23 | 24 | body: str 25 | 26 | 27 | __all__ = ( 28 | "GistsGistIdCommentsPostBodyType", 29 | "GistsGistIdCommentsPostBodyTypeForResponse", 30 | ) 31 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/webhooks/repository_dispatch.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookRepositoryDispatchSample 13 | 14 | Event: TypeAlias = WebhookRepositoryDispatchSample 15 | 16 | RepositoryDispatchEvent: TypeAlias = Event 17 | 18 | action_types = WebhookRepositoryDispatchSample 19 | 20 | repository_dispatch_action_types = action_types 21 | 22 | __all__ = ( 23 | "Event", 24 | "RepositoryDispatchEvent", 25 | "action_types", 26 | "repository_dispatch_action_types", 27 | ) 28 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_1261.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ReposOwnerRepoBranchesBranchRenamePostBody(GitHubModel): 18 | """ReposOwnerRepoBranchesBranchRenamePostBody""" 19 | 20 | new_name: str = Field(description="The new name of the branch.") 21 | 22 | 23 | model_rebuild(ReposOwnerRepoBranchesBranchRenamePostBody) 24 | 25 | __all__ = ("ReposOwnerRepoBranchesBranchRenamePostBody",) 26 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_1417.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | from .group_0250 import Codespace 17 | 18 | 19 | class UserCodespacesGetResponse200(GitHubModel): 20 | """UserCodespacesGetResponse200""" 21 | 22 | total_count: int = Field() 23 | codespaces: list[Codespace] = Field() 24 | 25 | 26 | model_rebuild(UserCodespacesGetResponse200) 27 | 28 | __all__ = ("UserCodespacesGetResponse200",) 29 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/types/group_0416.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing_extensions import TypedDict 13 | 14 | 15 | class ShortBlobType(TypedDict): 16 | """Short Blob 17 | 18 | Short Blob 19 | """ 20 | 21 | url: str 22 | sha: str 23 | 24 | 25 | class ShortBlobTypeForResponse(TypedDict): 26 | """Short Blob 27 | 28 | Short Blob 29 | """ 30 | 31 | url: str 32 | sha: str 33 | 34 | 35 | __all__ = ( 36 | "ShortBlobType", 37 | "ShortBlobTypeForResponse", 38 | ) 39 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/types/group_1069.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing_extensions import TypedDict 13 | 14 | 15 | class GistsGistIdCommentsPostBodyType(TypedDict): 16 | """GistsGistIdCommentsPostBody""" 17 | 18 | body: str 19 | 20 | 21 | class GistsGistIdCommentsPostBodyTypeForResponse(TypedDict): 22 | """GistsGistIdCommentsPostBody""" 23 | 24 | body: str 25 | 26 | 27 | __all__ = ( 28 | "GistsGistIdCommentsPostBodyType", 29 | "GistsGistIdCommentsPostBodyTypeForResponse", 30 | ) 31 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/webhooks/repository_dispatch.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookRepositoryDispatchSample 13 | 14 | Event: TypeAlias = WebhookRepositoryDispatchSample 15 | 16 | RepositoryDispatchEvent: TypeAlias = Event 17 | 18 | action_types = WebhookRepositoryDispatchSample 19 | 20 | repository_dispatch_action_types = action_types 21 | 22 | __all__ = ( 23 | "Event", 24 | "RepositoryDispatchEvent", 25 | "action_types", 26 | "repository_dispatch_action_types", 27 | ) 28 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0093.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class DeleteBudget(GitHubModel): 18 | """DeleteBudget""" 19 | 20 | message: str = Field( 21 | description="A message indicating the result of the deletion operation" 22 | ) 23 | id: str = Field(description="The ID of the deleted budget") 24 | 25 | 26 | model_rebuild(DeleteBudget) 27 | 28 | __all__ = ("DeleteBudget",) 29 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0918.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | from githubkit.typing import Missing 16 | from githubkit.utils import UNSET 17 | 18 | 19 | class NotificationsPutResponse202(GitHubModel): 20 | """NotificationsPutResponse202""" 21 | 22 | message: Missing[str] = Field(default=UNSET) 23 | 24 | 25 | model_rebuild(NotificationsPutResponse202) 26 | 27 | __all__ = ("NotificationsPutResponse202",) 28 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/webhooks/installation_target.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookInstallationTargetRenamed 13 | 14 | Event: TypeAlias = WebhookInstallationTargetRenamed 15 | 16 | InstallationTargetEvent: TypeAlias = Event 17 | 18 | action_types = WebhookInstallationTargetRenamed 19 | 20 | installation_target_action_types = action_types 21 | 22 | __all__ = ( 23 | "Event", 24 | "InstallationTargetEvent", 25 | "action_types", 26 | "installation_target_action_types", 27 | ) 28 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0187.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class DeleteBudget(GitHubModel): 18 | """DeleteBudget""" 19 | 20 | message: str = Field( 21 | description="A message indicating the result of the deletion operation" 22 | ) 23 | id: str = Field(description="The ID of the deleted budget") 24 | 25 | 26 | model_rebuild(DeleteBudget) 27 | 28 | __all__ = ("DeleteBudget",) 29 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_1075.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | from githubkit.typing import Missing 16 | from githubkit.utils import UNSET 17 | 18 | 19 | class NotificationsPutResponse202(GitHubModel): 20 | """NotificationsPutResponse202""" 21 | 22 | message: Missing[str] = Field(default=UNSET) 23 | 24 | 25 | model_rebuild(NotificationsPutResponse202) 26 | 27 | __all__ = ("NotificationsPutResponse202",) 28 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/webhooks/installation_target.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookInstallationTargetRenamed 13 | 14 | Event: TypeAlias = WebhookInstallationTargetRenamed 15 | 16 | InstallationTargetEvent: TypeAlias = Event 17 | 18 | action_types = WebhookInstallationTargetRenamed 19 | 20 | installation_target_action_types = action_types 21 | 22 | __all__ = ( 23 | "Event", 24 | "InstallationTargetEvent", 25 | "action_types", 26 | "installation_target_action_types", 27 | ) 28 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0990.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | from .group_0129 import Codespace 17 | 18 | 19 | class OrgsOrgCodespacesGetResponse200(GitHubModel): 20 | """OrgsOrgCodespacesGetResponse200""" 21 | 22 | total_count: int = Field() 23 | codespaces: list[Codespace] = Field() 24 | 25 | 26 | model_rebuild(OrgsOrgCodespacesGetResponse200) 27 | 28 | __all__ = ("OrgsOrgCodespacesGetResponse200",) 29 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_1177.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items(GitHubModel): 18 | """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" 19 | 20 | name: str = Field() 21 | 22 | 23 | model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items) 24 | 25 | __all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",) 26 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/types/group_0443.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | import datetime as _dt 13 | from typing_extensions import TypedDict 14 | 15 | 16 | class TrafficType(TypedDict): 17 | """Traffic""" 18 | 19 | timestamp: _dt.datetime 20 | uniques: int 21 | count: int 22 | 23 | 24 | class TrafficTypeForResponse(TypedDict): 25 | """Traffic""" 26 | 27 | timestamp: str 28 | uniques: int 29 | count: int 30 | 31 | 32 | __all__ = ( 33 | "TrafficType", 34 | "TrafficTypeForResponse", 35 | ) 36 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/types/group_1265.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing_extensions import NotRequired, TypedDict 13 | 14 | 15 | class UserKeysPostBodyType(TypedDict): 16 | """UserKeysPostBody""" 17 | 18 | title: NotRequired[str] 19 | key: str 20 | 21 | 22 | class UserKeysPostBodyTypeForResponse(TypedDict): 23 | """UserKeysPostBody""" 24 | 25 | title: NotRequired[str] 26 | key: str 27 | 28 | 29 | __all__ = ( 30 | "UserKeysPostBodyType", 31 | "UserKeysPostBodyTypeForResponse", 32 | ) 33 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_1143.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | from .group_0250 import Codespace 17 | 18 | 19 | class OrgsOrgCodespacesGetResponse200(GitHubModel): 20 | """OrgsOrgCodespacesGetResponse200""" 21 | 22 | total_count: int = Field() 23 | codespaces: list[Codespace] = Field() 24 | 25 | 26 | model_rebuild(OrgsOrgCodespacesGetResponse200) 27 | 28 | __all__ = ("OrgsOrgCodespacesGetResponse200",) 29 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_1342.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items(GitHubModel): 18 | """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" 19 | 20 | name: str = Field() 21 | 22 | 23 | model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items) 24 | 25 | __all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",) 26 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/types/group_0512.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | import datetime as _dt 13 | from typing_extensions import TypedDict 14 | 15 | 16 | class TrafficType(TypedDict): 17 | """Traffic""" 18 | 19 | timestamp: _dt.datetime 20 | uniques: int 21 | count: int 22 | 23 | 24 | class TrafficTypeForResponse(TypedDict): 25 | """Traffic""" 26 | 27 | timestamp: str 28 | uniques: int 29 | count: int 30 | 31 | 32 | __all__ = ( 33 | "TrafficType", 34 | "TrafficTypeForResponse", 35 | ) 36 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/types/group_1434.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing_extensions import NotRequired, TypedDict 13 | 14 | 15 | class UserKeysPostBodyType(TypedDict): 16 | """UserKeysPostBody""" 17 | 18 | title: NotRequired[str] 19 | key: str 20 | 21 | 22 | class UserKeysPostBodyTypeForResponse(TypedDict): 23 | """UserKeysPostBody""" 24 | 25 | title: NotRequired[str] 26 | key: str 27 | 28 | 29 | __all__ = ( 30 | "UserKeysPostBodyType", 31 | "UserKeysPostBodyTypeForResponse", 32 | ) 33 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_1168.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ReposOwnerRepoIssuesCommentsCommentIdPatchBody(GitHubModel): 18 | """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" 19 | 20 | body: str = Field(description="The contents of the comment.") 21 | 22 | 23 | model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdPatchBody) 24 | 25 | __all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",) 26 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_1180.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items(GitHubModel): 18 | """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" 19 | 20 | name: str = Field() 21 | 22 | 23 | model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items) 24 | 25 | __all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",) 26 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/types/group_0438.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing_extensions import TypedDict 13 | 14 | 15 | class ParticipationStatsType(TypedDict): 16 | """Participation Stats""" 17 | 18 | all_: list[int] 19 | owner: list[int] 20 | 21 | 22 | class ParticipationStatsTypeForResponse(TypedDict): 23 | """Participation Stats""" 24 | 25 | all_: list[int] 26 | owner: list[int] 27 | 28 | 29 | __all__ = ( 30 | "ParticipationStatsType", 31 | "ParticipationStatsTypeForResponse", 32 | ) 33 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/types/group_0895.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing_extensions import TypedDict 13 | 14 | 15 | class CredentialsRevokePostBodyType(TypedDict): 16 | """CredentialsRevokePostBody""" 17 | 18 | credentials: list[str] 19 | 20 | 21 | class CredentialsRevokePostBodyTypeForResponse(TypedDict): 22 | """CredentialsRevokePostBody""" 23 | 24 | credentials: list[str] 25 | 26 | 27 | __all__ = ( 28 | "CredentialsRevokePostBodyType", 29 | "CredentialsRevokePostBodyTypeForResponse", 30 | ) 31 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/types/group_1239.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing_extensions import TypedDict 13 | 14 | 15 | class ReposOwnerRepoTopicsPutBodyType(TypedDict): 16 | """ReposOwnerRepoTopicsPutBody""" 17 | 18 | names: list[str] 19 | 20 | 21 | class ReposOwnerRepoTopicsPutBodyTypeForResponse(TypedDict): 22 | """ReposOwnerRepoTopicsPutBody""" 23 | 24 | names: list[str] 25 | 26 | 27 | __all__ = ( 28 | "ReposOwnerRepoTopicsPutBodyType", 29 | "ReposOwnerRepoTopicsPutBodyTypeForResponse", 30 | ) 31 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/webhooks/secret_scanning_scan.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookSecretScanningScanCompleted 13 | 14 | Event: TypeAlias = WebhookSecretScanningScanCompleted 15 | 16 | SecretScanningScanEvent: TypeAlias = Event 17 | 18 | action_types = WebhookSecretScanningScanCompleted 19 | 20 | secret_scanning_scan_action_types = action_types 21 | 22 | __all__ = ( 23 | "Event", 24 | "SecretScanningScanEvent", 25 | "action_types", 26 | "secret_scanning_scan_action_types", 27 | ) 28 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_1333.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ReposOwnerRepoIssuesCommentsCommentIdPatchBody(GitHubModel): 18 | """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" 19 | 20 | body: str = Field(description="The contents of the comment.") 21 | 22 | 23 | model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdPatchBody) 24 | 25 | __all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",) 26 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_1345.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items(GitHubModel): 18 | """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" 19 | 20 | name: str = Field() 21 | 22 | 23 | model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items) 24 | 25 | __all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",) 26 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/types/group_0507.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing_extensions import TypedDict 13 | 14 | 15 | class ParticipationStatsType(TypedDict): 16 | """Participation Stats""" 17 | 18 | all_: list[int] 19 | owner: list[int] 20 | 21 | 22 | class ParticipationStatsTypeForResponse(TypedDict): 23 | """Participation Stats""" 24 | 25 | all_: list[int] 26 | owner: list[int] 27 | 28 | 29 | __all__ = ( 30 | "ParticipationStatsType", 31 | "ParticipationStatsTypeForResponse", 32 | ) 33 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/types/group_0986.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing_extensions import TypedDict 13 | 14 | 15 | class CredentialsRevokePostBodyType(TypedDict): 16 | """CredentialsRevokePostBody""" 17 | 18 | credentials: list[str] 19 | 20 | 21 | class CredentialsRevokePostBodyTypeForResponse(TypedDict): 22 | """CredentialsRevokePostBody""" 23 | 24 | credentials: list[str] 25 | 26 | 27 | __all__ = ( 28 | "CredentialsRevokePostBodyType", 29 | "CredentialsRevokePostBodyTypeForResponse", 30 | ) 31 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/types/group_1404.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing_extensions import TypedDict 13 | 14 | 15 | class ReposOwnerRepoTopicsPutBodyType(TypedDict): 16 | """ReposOwnerRepoTopicsPutBody""" 17 | 18 | names: list[str] 19 | 20 | 21 | class ReposOwnerRepoTopicsPutBodyTypeForResponse(TypedDict): 22 | """ReposOwnerRepoTopicsPutBody""" 23 | 24 | names: list[str] 25 | 26 | 27 | __all__ = ( 28 | "ReposOwnerRepoTopicsPutBodyType", 29 | "ReposOwnerRepoTopicsPutBodyTypeForResponse", 30 | ) 31 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/webhooks/secret_scanning_scan.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookSecretScanningScanCompleted 13 | 14 | Event: TypeAlias = WebhookSecretScanningScanCompleted 15 | 16 | SecretScanningScanEvent: TypeAlias = Event 17 | 18 | action_types = WebhookSecretScanningScanCompleted 19 | 20 | secret_scanning_scan_action_types = action_types 21 | 22 | __all__ = ( 23 | "Event", 24 | "SecretScanningScanEvent", 25 | "action_types", 26 | "secret_scanning_scan_action_types", 27 | ) 28 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0891.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ApplicationsClientIdTokenPostBody(GitHubModel): 18 | """ApplicationsClientIdTokenPostBody""" 19 | 20 | access_token: str = Field( 21 | description="The access_token of the OAuth or GitHub application." 22 | ) 23 | 24 | 25 | model_rebuild(ApplicationsClientIdTokenPostBody) 26 | 27 | __all__ = ("ApplicationsClientIdTokenPostBody",) 28 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0950.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | from .group_0115 import Runner 17 | 18 | 19 | class OrgsOrgActionsRunnersGetResponse200(GitHubModel): 20 | """OrgsOrgActionsRunnersGetResponse200""" 21 | 22 | total_count: int = Field() 23 | runners: list[Runner] = Field() 24 | 25 | 26 | model_rebuild(OrgsOrgActionsRunnersGetResponse200) 27 | 28 | __all__ = ("OrgsOrgActionsRunnersGetResponse200",) 29 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_1173.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ReposOwnerRepoIssuesIssueNumberCommentsPostBody(GitHubModel): 18 | """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" 19 | 20 | body: str = Field(description="The contents of the comment.") 21 | 22 | 23 | model_rebuild(ReposOwnerRepoIssuesIssueNumberCommentsPostBody) 24 | 25 | __all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",) 26 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_1262.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | from .group_0018 import Installation 17 | 18 | 19 | class UserInstallationsGetResponse200(GitHubModel): 20 | """UserInstallationsGetResponse200""" 21 | 22 | total_count: int = Field() 23 | installations: list[Installation] = Field() 24 | 25 | 26 | model_rebuild(UserInstallationsGetResponse200) 27 | 28 | __all__ = ("UserInstallationsGetResponse200",) 29 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/types/group_0106.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing_extensions import TypedDict 13 | 14 | 15 | class ActionsArtifactAndLogRetentionType(TypedDict): 16 | """ActionsArtifactAndLogRetention""" 17 | 18 | days: int 19 | 20 | 21 | class ActionsArtifactAndLogRetentionTypeForResponse(TypedDict): 22 | """ActionsArtifactAndLogRetention""" 23 | 24 | days: int 25 | 26 | 27 | __all__ = ( 28 | "ActionsArtifactAndLogRetentionType", 29 | "ActionsArtifactAndLogRetentionTypeForResponse", 30 | ) 31 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0982.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ApplicationsClientIdTokenPostBody(GitHubModel): 18 | """ApplicationsClientIdTokenPostBody""" 19 | 20 | access_token: str = Field( 21 | description="The access_token of the OAuth or GitHub application." 22 | ) 23 | 24 | 25 | model_rebuild(ApplicationsClientIdTokenPostBody) 26 | 27 | __all__ = ("ApplicationsClientIdTokenPostBody",) 28 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_1106.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | from .group_0051 import Runner 17 | 18 | 19 | class OrgsOrgActionsRunnersGetResponse200(GitHubModel): 20 | """OrgsOrgActionsRunnersGetResponse200""" 21 | 22 | total_count: int = Field() 23 | runners: list[Runner] = Field() 24 | 25 | 26 | model_rebuild(OrgsOrgActionsRunnersGetResponse200) 27 | 28 | __all__ = ("OrgsOrgActionsRunnersGetResponse200",) 29 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_1338.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ReposOwnerRepoIssuesIssueNumberCommentsPostBody(GitHubModel): 18 | """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" 19 | 20 | body: str = Field(description="The contents of the comment.") 21 | 22 | 23 | model_rebuild(ReposOwnerRepoIssuesIssueNumberCommentsPostBody) 24 | 25 | __all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",) 26 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_1431.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | from .group_0018 import Installation 17 | 18 | 19 | class UserInstallationsGetResponse200(GitHubModel): 20 | """UserInstallationsGetResponse200""" 21 | 22 | total_count: int = Field() 23 | installations: list[Installation] = Field() 24 | 25 | 26 | model_rebuild(UserInstallationsGetResponse200) 27 | 28 | __all__ = ("UserInstallationsGetResponse200",) 29 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/types/group_0042.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing_extensions import TypedDict 13 | 14 | 15 | class ActionsArtifactAndLogRetentionType(TypedDict): 16 | """ActionsArtifactAndLogRetention""" 17 | 18 | days: int 19 | 20 | 21 | class ActionsArtifactAndLogRetentionTypeForResponse(TypedDict): 22 | """ActionsArtifactAndLogRetention""" 23 | 24 | days: int 25 | 26 | 27 | __all__ = ( 28 | "ActionsArtifactAndLogRetentionType", 29 | "ActionsArtifactAndLogRetentionTypeForResponse", 30 | ) 31 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0056.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | from .group_0044 import Discussion 17 | 18 | 19 | class DiscussionEvent(GitHubModel): 20 | """DiscussionEvent""" 21 | 22 | action: str = Field() 23 | discussion: Discussion = Field( 24 | title="Discussion", description="A Discussion in a repository." 25 | ) 26 | 27 | 28 | model_rebuild(DiscussionEvent) 29 | 30 | __all__ = ("DiscussionEvent",) 31 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0893.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ApplicationsClientIdTokenPatchBody(GitHubModel): 18 | """ApplicationsClientIdTokenPatchBody""" 19 | 20 | access_token: str = Field( 21 | description="The access_token of the OAuth or GitHub application." 22 | ) 23 | 24 | 25 | model_rebuild(ApplicationsClientIdTokenPatchBody) 26 | 27 | __all__ = ("ApplicationsClientIdTokenPatchBody",) 28 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_1208.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ReposOwnerRepoPullsCommentsCommentIdPatchBody(GitHubModel): 18 | """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" 19 | 20 | body: str = Field(description="The text of the reply to the review comment.") 21 | 22 | 23 | model_rebuild(ReposOwnerRepoPullsCommentsCommentIdPatchBody) 24 | 25 | __all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",) 26 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/types/group_0245.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing_extensions import TypedDict 13 | 14 | 15 | class RateLimitType(TypedDict): 16 | """Rate Limit""" 17 | 18 | limit: int 19 | remaining: int 20 | reset: int 21 | used: int 22 | 23 | 24 | class RateLimitTypeForResponse(TypedDict): 25 | """Rate Limit""" 26 | 27 | limit: int 28 | remaining: int 29 | reset: int 30 | used: int 31 | 32 | 33 | __all__ = ( 34 | "RateLimitType", 35 | "RateLimitTypeForResponse", 36 | ) 37 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/webhooks/custom_property_values.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookCustomPropertyValuesUpdated 13 | 14 | Event: TypeAlias = WebhookCustomPropertyValuesUpdated 15 | 16 | CustomPropertyValuesEvent: TypeAlias = Event 17 | 18 | action_types = WebhookCustomPropertyValuesUpdated 19 | 20 | custom_property_values_action_types = action_types 21 | 22 | __all__ = ( 23 | "CustomPropertyValuesEvent", 24 | "Event", 25 | "action_types", 26 | "custom_property_values_action_types", 27 | ) 28 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0207.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | from .group_0195 import Discussion 17 | 18 | 19 | class DiscussionEvent(GitHubModel): 20 | """DiscussionEvent""" 21 | 22 | action: str = Field() 23 | discussion: Discussion = Field( 24 | title="Discussion", description="A Discussion in a repository." 25 | ) 26 | 27 | 28 | model_rebuild(DiscussionEvent) 29 | 30 | __all__ = ("DiscussionEvent",) 31 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0984.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ApplicationsClientIdTokenPatchBody(GitHubModel): 18 | """ApplicationsClientIdTokenPatchBody""" 19 | 20 | access_token: str = Field( 21 | description="The access_token of the OAuth or GitHub application." 22 | ) 23 | 24 | 25 | model_rebuild(ApplicationsClientIdTokenPatchBody) 26 | 27 | __all__ = ("ApplicationsClientIdTokenPatchBody",) 28 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_1373.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ReposOwnerRepoPullsCommentsCommentIdPatchBody(GitHubModel): 18 | """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" 19 | 20 | body: str = Field(description="The text of the reply to the review comment.") 21 | 22 | 23 | model_rebuild(ReposOwnerRepoPullsCommentsCommentIdPatchBody) 24 | 25 | __all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",) 26 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/types/group_0314.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing_extensions import TypedDict 13 | 14 | 15 | class RateLimitType(TypedDict): 16 | """Rate Limit""" 17 | 18 | limit: int 19 | remaining: int 20 | reset: int 21 | used: int 22 | 23 | 24 | class RateLimitTypeForResponse(TypedDict): 25 | """Rate Limit""" 26 | 27 | limit: int 28 | remaining: int 29 | reset: int 30 | used: int 31 | 32 | 33 | __all__ = ( 34 | "RateLimitType", 35 | "RateLimitTypeForResponse", 36 | ) 37 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/webhooks/custom_property_values.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookCustomPropertyValuesUpdated 13 | 14 | Event: TypeAlias = WebhookCustomPropertyValuesUpdated 15 | 16 | CustomPropertyValuesEvent: TypeAlias = Event 17 | 18 | action_types = WebhookCustomPropertyValuesUpdated 19 | 20 | custom_property_values_action_types = action_types 21 | 22 | __all__ = ( 23 | "CustomPropertyValuesEvent", 24 | "Event", 25 | "action_types", 26 | "custom_property_values_action_types", 27 | ) 28 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0435.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | import datetime as _dt 13 | from typing import Union 14 | 15 | from pydantic import Field 16 | 17 | from githubkit.compat import GitHubModel, model_rebuild 18 | 19 | from .group_0003 import SimpleUser 20 | 21 | 22 | class Stargazer(GitHubModel): 23 | """Stargazer 24 | 25 | Stargazer 26 | """ 27 | 28 | starred_at: _dt.datetime = Field() 29 | user: Union[None, SimpleUser] = Field() 30 | 31 | 32 | model_rebuild(Stargazer) 33 | 34 | __all__ = ("Stargazer",) 35 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0890.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ApplicationsClientIdGrantDeleteBody(GitHubModel): 18 | """ApplicationsClientIdGrantDeleteBody""" 19 | 20 | access_token: str = Field( 21 | description="The OAuth access token used to authenticate to the GitHub API." 22 | ) 23 | 24 | 25 | model_rebuild(ApplicationsClientIdGrantDeleteBody) 26 | 27 | __all__ = ("ApplicationsClientIdGrantDeleteBody",) 28 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0892.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ApplicationsClientIdTokenDeleteBody(GitHubModel): 18 | """ApplicationsClientIdTokenDeleteBody""" 19 | 20 | access_token: str = Field( 21 | description="The OAuth access token used to authenticate to the GitHub API." 22 | ) 23 | 24 | 25 | model_rebuild(ApplicationsClientIdTokenDeleteBody) 26 | 27 | __all__ = ("ApplicationsClientIdTokenDeleteBody",) 28 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0934.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class OrgsOrgActionsHostedRunnersPlatformsGetResponse200(GitHubModel): 18 | """OrgsOrgActionsHostedRunnersPlatformsGetResponse200""" 19 | 20 | total_count: int = Field() 21 | platforms: list[str] = Field() 22 | 23 | 24 | model_rebuild(OrgsOrgActionsHostedRunnersPlatformsGetResponse200) 25 | 26 | __all__ = ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200",) 27 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_1013.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | from .group_0018 import Installation 17 | 18 | 19 | class OrgsOrgInstallationsGetResponse200(GitHubModel): 20 | """OrgsOrgInstallationsGetResponse200""" 21 | 22 | total_count: int = Field() 23 | installations: list[Installation] = Field() 24 | 25 | 26 | model_rebuild(OrgsOrgInstallationsGetResponse200) 27 | 28 | __all__ = ("OrgsOrgInstallationsGetResponse200",) 29 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_1189.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ReposOwnerRepoMergeUpstreamPostBody(GitHubModel): 18 | """ReposOwnerRepoMergeUpstreamPostBody""" 19 | 20 | branch: str = Field( 21 | description="The name of the branch which should be updated to match upstream." 22 | ) 23 | 24 | 25 | model_rebuild(ReposOwnerRepoMergeUpstreamPostBody) 26 | 27 | __all__ = ("ReposOwnerRepoMergeUpstreamPostBody",) 28 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/types/group_1264.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing_extensions import TypedDict 13 | 14 | 15 | class UserInteractionLimitsGetResponse200Anyof1Type(TypedDict): 16 | """UserInteractionLimitsGetResponse200Anyof1""" 17 | 18 | 19 | class UserInteractionLimitsGetResponse200Anyof1TypeForResponse(TypedDict): 20 | """UserInteractionLimitsGetResponse200Anyof1""" 21 | 22 | 23 | __all__ = ( 24 | "UserInteractionLimitsGetResponse200Anyof1Type", 25 | "UserInteractionLimitsGetResponse200Anyof1TypeForResponse", 26 | ) 27 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0504.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | import datetime as _dt 13 | from typing import Union 14 | 15 | from pydantic import Field 16 | 17 | from githubkit.compat import GitHubModel, model_rebuild 18 | 19 | from .group_0003 import SimpleUser 20 | 21 | 22 | class Stargazer(GitHubModel): 23 | """Stargazer 24 | 25 | Stargazer 26 | """ 27 | 28 | starred_at: _dt.datetime = Field() 29 | user: Union[None, SimpleUser] = Field() 30 | 31 | 32 | model_rebuild(Stargazer) 33 | 34 | __all__ = ("Stargazer",) 35 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0981.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ApplicationsClientIdGrantDeleteBody(GitHubModel): 18 | """ApplicationsClientIdGrantDeleteBody""" 19 | 20 | access_token: str = Field( 21 | description="The OAuth access token used to authenticate to the GitHub API." 22 | ) 23 | 24 | 25 | model_rebuild(ApplicationsClientIdGrantDeleteBody) 26 | 27 | __all__ = ("ApplicationsClientIdGrantDeleteBody",) 28 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0983.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ApplicationsClientIdTokenDeleteBody(GitHubModel): 18 | """ApplicationsClientIdTokenDeleteBody""" 19 | 20 | access_token: str = Field( 21 | description="The OAuth access token used to authenticate to the GitHub API." 22 | ) 23 | 24 | 25 | model_rebuild(ApplicationsClientIdTokenDeleteBody) 26 | 27 | __all__ = ("ApplicationsClientIdTokenDeleteBody",) 28 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_1090.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class OrgsOrgActionsHostedRunnersPlatformsGetResponse200(GitHubModel): 18 | """OrgsOrgActionsHostedRunnersPlatformsGetResponse200""" 19 | 20 | total_count: int = Field() 21 | platforms: list[str] = Field() 22 | 23 | 24 | model_rebuild(OrgsOrgActionsHostedRunnersPlatformsGetResponse200) 25 | 26 | __all__ = ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200",) 27 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_1168.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | from .group_0018 import Installation 17 | 18 | 19 | class OrgsOrgInstallationsGetResponse200(GitHubModel): 20 | """OrgsOrgInstallationsGetResponse200""" 21 | 22 | total_count: int = Field() 23 | installations: list[Installation] = Field() 24 | 25 | 26 | model_rebuild(OrgsOrgInstallationsGetResponse200) 27 | 28 | __all__ = ("OrgsOrgInstallationsGetResponse200",) 29 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_1354.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ReposOwnerRepoMergeUpstreamPostBody(GitHubModel): 18 | """ReposOwnerRepoMergeUpstreamPostBody""" 19 | 20 | branch: str = Field( 21 | description="The name of the branch which should be updated to match upstream." 22 | ) 23 | 24 | 25 | model_rebuild(ReposOwnerRepoMergeUpstreamPostBody) 26 | 27 | __all__ = ("ReposOwnerRepoMergeUpstreamPostBody",) 28 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/types/group_1433.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing_extensions import TypedDict 13 | 14 | 15 | class UserInteractionLimitsGetResponse200Anyof1Type(TypedDict): 16 | """UserInteractionLimitsGetResponse200Anyof1""" 17 | 18 | 19 | class UserInteractionLimitsGetResponse200Anyof1TypeForResponse(TypedDict): 20 | """UserInteractionLimitsGetResponse200Anyof1""" 21 | 22 | 23 | __all__ = ( 24 | "UserInteractionLimitsGetResponse200Anyof1Type", 25 | "UserInteractionLimitsGetResponse200Anyof1TypeForResponse", 26 | ) 27 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0188.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class RepositoryRuleUpdatePropParameters(GitHubModel): 18 | """RepositoryRuleUpdatePropParameters""" 19 | 20 | update_allows_fetch_and_merge: bool = Field( 21 | description="Branch can pull changes from its upstream repository" 22 | ) 23 | 24 | 25 | model_rebuild(RepositoryRuleUpdatePropParameters) 26 | 27 | __all__ = ("RepositoryRuleUpdatePropParameters",) 28 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_1120.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | from .group_0129 import Codespace 17 | 18 | 19 | class ReposOwnerRepoCodespacesGetResponse200(GitHubModel): 20 | """ReposOwnerRepoCodespacesGetResponse200""" 21 | 22 | total_count: int = Field() 23 | codespaces: list[Codespace] = Field() 24 | 25 | 26 | model_rebuild(ReposOwnerRepoCodespacesGetResponse200) 27 | 28 | __all__ = ("ReposOwnerRepoCodespacesGetResponse200",) 29 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_1183.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody(GitHubModel): 18 | """ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody""" 19 | 20 | sub_issue_id: int = Field(description="The id of the sub-issue to remove") 21 | 22 | 23 | model_rebuild(ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody) 24 | 25 | __all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody",) 26 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/webhooks/github_app_authorization.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookGithubAppAuthorizationRevoked 13 | 14 | Event: TypeAlias = WebhookGithubAppAuthorizationRevoked 15 | 16 | GithubAppAuthorizationEvent: TypeAlias = Event 17 | 18 | action_types = WebhookGithubAppAuthorizationRevoked 19 | 20 | github_app_authorization_action_types = action_types 21 | 22 | __all__ = ( 23 | "Event", 24 | "GithubAppAuthorizationEvent", 25 | "action_types", 26 | "github_app_authorization_action_types", 27 | ) 28 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0130.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class RepositoryRuleUpdatePropParameters(GitHubModel): 18 | """RepositoryRuleUpdatePropParameters""" 19 | 20 | update_allows_fetch_and_merge: bool = Field( 21 | description="Branch can pull changes from its upstream repository" 22 | ) 23 | 24 | 25 | model_rebuild(RepositoryRuleUpdatePropParameters) 26 | 27 | __all__ = ("RepositoryRuleUpdatePropParameters",) 28 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0265.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class RepositoryFineGrainedPermission(GitHubModel): 18 | """Repository Fine-Grained Permission 19 | 20 | A fine-grained permission that protects repository resources. 21 | """ 22 | 23 | name: str = Field() 24 | description: str = Field() 25 | 26 | 27 | model_rebuild(RepositoryFineGrainedPermission) 28 | 29 | __all__ = ("RepositoryFineGrainedPermission",) 30 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_1279.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | from .group_0250 import Codespace 17 | 18 | 19 | class ReposOwnerRepoCodespacesGetResponse200(GitHubModel): 20 | """ReposOwnerRepoCodespacesGetResponse200""" 21 | 22 | total_count: int = Field() 23 | codespaces: list[Codespace] = Field() 24 | 25 | 26 | model_rebuild(ReposOwnerRepoCodespacesGetResponse200) 27 | 28 | __all__ = ("ReposOwnerRepoCodespacesGetResponse200",) 29 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_1348.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody(GitHubModel): 18 | """ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody""" 19 | 20 | sub_issue_id: int = Field(description="The id of the sub-issue to remove") 21 | 22 | 23 | model_rebuild(ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody) 24 | 25 | __all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody",) 26 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/webhooks/github_app_authorization.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from typing_extensions import TypeAlias 11 | 12 | from ..models import WebhookGithubAppAuthorizationRevoked 13 | 14 | Event: TypeAlias = WebhookGithubAppAuthorizationRevoked 15 | 16 | GithubAppAuthorizationEvent: TypeAlias = Event 17 | 18 | action_types = WebhookGithubAppAuthorizationRevoked 19 | 20 | github_app_authorization_action_types = action_types 21 | 22 | __all__ = ( 23 | "Event", 24 | "GithubAppAuthorizationEvent", 25 | "action_types", 26 | "github_app_authorization_action_types", 27 | ) 28 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0466.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | import datetime as _dt 13 | 14 | from pydantic import Field 15 | 16 | from githubkit.compat import GitHubModel, model_rebuild 17 | 18 | 19 | class SshSigningKey(GitHubModel): 20 | """SSH Signing Key 21 | 22 | A public SSH key used to sign Git commits 23 | """ 24 | 25 | key: str = Field() 26 | id: int = Field() 27 | title: str = Field() 28 | created_at: _dt.datetime = Field() 29 | 30 | 31 | model_rebuild(SshSigningKey) 32 | 33 | __all__ = ("SshSigningKey",) 34 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_1066.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | from .group_0115 import Runner 17 | 18 | 19 | class ReposOwnerRepoActionsRunnersGetResponse200(GitHubModel): 20 | """ReposOwnerRepoActionsRunnersGetResponse200""" 21 | 22 | total_count: int = Field() 23 | runners: list[Runner] = Field() 24 | 25 | 26 | model_rebuild(ReposOwnerRepoActionsRunnersGetResponse200) 27 | 28 | __all__ = ("ReposOwnerRepoActionsRunnersGetResponse200",) 29 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_1238.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ReposOwnerRepoTagsProtectionPostBody(GitHubModel): 18 | """ReposOwnerRepoTagsProtectionPostBody""" 19 | 20 | pattern: str = Field( 21 | description="An optional glob pattern to match against when enforcing tag protection." 22 | ) 23 | 24 | 25 | model_rebuild(ReposOwnerRepoTagsProtectionPostBody) 26 | 27 | __all__ = ("ReposOwnerRepoTagsProtectionPostBody",) 28 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/types/group_0344.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing_extensions import TypedDict 13 | 14 | 15 | class DeploymentBranchPolicyNamePatternType(TypedDict): 16 | """Deployment branch policy name pattern""" 17 | 18 | name: str 19 | 20 | 21 | class DeploymentBranchPolicyNamePatternTypeForResponse(TypedDict): 22 | """Deployment branch policy name pattern""" 23 | 24 | name: str 25 | 26 | 27 | __all__ = ( 28 | "DeploymentBranchPolicyNamePatternType", 29 | "DeploymentBranchPolicyNamePatternTypeForResponse", 30 | ) 31 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/types/group_0918.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing_extensions import NotRequired, TypedDict 13 | 14 | 15 | class NotificationsPutResponse202Type(TypedDict): 16 | """NotificationsPutResponse202""" 17 | 18 | message: NotRequired[str] 19 | 20 | 21 | class NotificationsPutResponse202TypeForResponse(TypedDict): 22 | """NotificationsPutResponse202""" 23 | 24 | message: NotRequired[str] 25 | 26 | 27 | __all__ = ( 28 | "NotificationsPutResponse202Type", 29 | "NotificationsPutResponse202TypeForResponse", 30 | ) 31 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/types/group_1111.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing_extensions import TypedDict 13 | 14 | 15 | class ReposOwnerRepoCheckSuitesPostBodyType(TypedDict): 16 | """ReposOwnerRepoCheckSuitesPostBody""" 17 | 18 | head_sha: str 19 | 20 | 21 | class ReposOwnerRepoCheckSuitesPostBodyTypeForResponse(TypedDict): 22 | """ReposOwnerRepoCheckSuitesPostBody""" 23 | 24 | head_sha: str 25 | 26 | 27 | __all__ = ( 28 | "ReposOwnerRepoCheckSuitesPostBodyType", 29 | "ReposOwnerRepoCheckSuitesPostBodyTypeForResponse", 30 | ) 31 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/types/group_1154.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing_extensions import TypedDict 13 | 14 | 15 | class ReposOwnerRepoGitRefsPostBodyType(TypedDict): 16 | """ReposOwnerRepoGitRefsPostBody""" 17 | 18 | ref: str 19 | sha: str 20 | 21 | 22 | class ReposOwnerRepoGitRefsPostBodyTypeForResponse(TypedDict): 23 | """ReposOwnerRepoGitRefsPostBody""" 24 | 25 | ref: str 26 | sha: str 27 | 28 | 29 | __all__ = ( 30 | "ReposOwnerRepoGitRefsPostBodyType", 31 | "ReposOwnerRepoGitRefsPostBodyTypeForResponse", 32 | ) 33 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0549.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | import datetime as _dt 13 | 14 | from pydantic import Field 15 | 16 | from githubkit.compat import GitHubModel, model_rebuild 17 | 18 | 19 | class SshSigningKey(GitHubModel): 20 | """SSH Signing Key 21 | 22 | A public SSH key used to sign Git commits 23 | """ 24 | 25 | key: str = Field() 26 | id: int = Field() 27 | title: str = Field() 28 | created_at: _dt.datetime = Field() 29 | 30 | 31 | model_rebuild(SshSigningKey) 32 | 33 | __all__ = ("SshSigningKey",) 34 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_1223.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | from .group_0051 import Runner 17 | 18 | 19 | class ReposOwnerRepoActionsRunnersGetResponse200(GitHubModel): 20 | """ReposOwnerRepoActionsRunnersGetResponse200""" 21 | 22 | total_count: int = Field() 23 | runners: list[Runner] = Field() 24 | 25 | 26 | model_rebuild(ReposOwnerRepoActionsRunnersGetResponse200) 27 | 28 | __all__ = ("ReposOwnerRepoActionsRunnersGetResponse200",) 29 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_1403.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ReposOwnerRepoTagsProtectionPostBody(GitHubModel): 18 | """ReposOwnerRepoTagsProtectionPostBody""" 19 | 20 | pattern: str = Field( 21 | description="An optional glob pattern to match against when enforcing tag protection." 22 | ) 23 | 24 | 25 | model_rebuild(ReposOwnerRepoTagsProtectionPostBody) 26 | 27 | __all__ = ("ReposOwnerRepoTagsProtectionPostBody",) 28 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/types/group_0413.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing_extensions import TypedDict 13 | 14 | 15 | class DeploymentBranchPolicyNamePatternType(TypedDict): 16 | """Deployment branch policy name pattern""" 17 | 18 | name: str 19 | 20 | 21 | class DeploymentBranchPolicyNamePatternTypeForResponse(TypedDict): 22 | """Deployment branch policy name pattern""" 23 | 24 | name: str 25 | 26 | 27 | __all__ = ( 28 | "DeploymentBranchPolicyNamePatternType", 29 | "DeploymentBranchPolicyNamePatternTypeForResponse", 30 | ) 31 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/types/group_1075.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing_extensions import NotRequired, TypedDict 13 | 14 | 15 | class NotificationsPutResponse202Type(TypedDict): 16 | """NotificationsPutResponse202""" 17 | 18 | message: NotRequired[str] 19 | 20 | 21 | class NotificationsPutResponse202TypeForResponse(TypedDict): 22 | """NotificationsPutResponse202""" 23 | 24 | message: NotRequired[str] 25 | 26 | 27 | __all__ = ( 28 | "NotificationsPutResponse202Type", 29 | "NotificationsPutResponse202TypeForResponse", 30 | ) 31 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/types/group_1270.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing_extensions import TypedDict 13 | 14 | 15 | class ReposOwnerRepoCheckSuitesPostBodyType(TypedDict): 16 | """ReposOwnerRepoCheckSuitesPostBody""" 17 | 18 | head_sha: str 19 | 20 | 21 | class ReposOwnerRepoCheckSuitesPostBodyTypeForResponse(TypedDict): 22 | """ReposOwnerRepoCheckSuitesPostBody""" 23 | 24 | head_sha: str 25 | 26 | 27 | __all__ = ( 28 | "ReposOwnerRepoCheckSuitesPostBodyType", 29 | "ReposOwnerRepoCheckSuitesPostBodyTypeForResponse", 30 | ) 31 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/types/group_1319.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing_extensions import TypedDict 13 | 14 | 15 | class ReposOwnerRepoGitRefsPostBodyType(TypedDict): 16 | """ReposOwnerRepoGitRefsPostBody""" 17 | 18 | ref: str 19 | sha: str 20 | 21 | 22 | class ReposOwnerRepoGitRefsPostBodyTypeForResponse(TypedDict): 23 | """ReposOwnerRepoGitRefsPostBody""" 24 | 25 | ref: str 26 | sha: str 27 | 28 | 29 | __all__ = ( 30 | "ReposOwnerRepoGitRefsPostBodyType", 31 | "ReposOwnerRepoGitRefsPostBodyTypeForResponse", 32 | ) 33 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_1070.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | from .group_0259 import WorkflowRun 17 | 18 | 19 | class ReposOwnerRepoActionsRunsGetResponse200(GitHubModel): 20 | """ReposOwnerRepoActionsRunsGetResponse200""" 21 | 22 | total_count: int = Field() 23 | workflow_runs: list[WorkflowRun] = Field() 24 | 25 | 26 | model_rebuild(ReposOwnerRepoActionsRunsGetResponse200) 27 | 28 | __all__ = ("ReposOwnerRepoActionsRunsGetResponse200",) 29 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_1080.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ReposOwnerRepoActionsVariablesPostBody(GitHubModel): 18 | """ReposOwnerRepoActionsVariablesPostBody""" 19 | 20 | name: str = Field(description="The name of the variable.") 21 | value: str = Field(description="The value of the variable.") 22 | 23 | 24 | model_rebuild(ReposOwnerRepoActionsVariablesPostBody) 25 | 26 | __all__ = ("ReposOwnerRepoActionsVariablesPostBody",) 27 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_1221.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody(GitHubModel): 18 | """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" 19 | 20 | body: str = Field(description="The body text of the pull request review.") 21 | 22 | 23 | model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody) 24 | 25 | __all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",) 26 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/types/group_0442.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing_extensions import TypedDict 13 | 14 | 15 | class TopicType(TypedDict): 16 | """Topic 17 | 18 | A topic aggregates entities that are related to a subject. 19 | """ 20 | 21 | names: list[str] 22 | 23 | 24 | class TopicTypeForResponse(TypedDict): 25 | """Topic 26 | 27 | A topic aggregates entities that are related to a subject. 28 | """ 29 | 30 | names: list[str] 31 | 32 | 33 | __all__ = ( 34 | "TopicType", 35 | "TopicTypeForResponse", 36 | ) 37 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0278.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class OrganizationFineGrainedPermission(GitHubModel): 18 | """Organization Fine-Grained Permission 19 | 20 | A fine-grained permission that protects organization resources. 21 | """ 22 | 23 | name: str = Field() 24 | description: str = Field() 25 | 26 | 27 | model_rebuild(OrganizationFineGrainedPermission) 28 | 29 | __all__ = ("OrganizationFineGrainedPermission",) 30 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_1227.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | from .group_0328 import WorkflowRun 17 | 18 | 19 | class ReposOwnerRepoActionsRunsGetResponse200(GitHubModel): 20 | """ReposOwnerRepoActionsRunsGetResponse200""" 21 | 22 | total_count: int = Field() 23 | workflow_runs: list[WorkflowRun] = Field() 24 | 25 | 26 | model_rebuild(ReposOwnerRepoActionsRunsGetResponse200) 27 | 28 | __all__ = ("ReposOwnerRepoActionsRunsGetResponse200",) 29 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_1237.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ReposOwnerRepoActionsVariablesPostBody(GitHubModel): 18 | """ReposOwnerRepoActionsVariablesPostBody""" 19 | 20 | name: str = Field(description="The name of the variable.") 21 | value: str = Field(description="The value of the variable.") 22 | 23 | 24 | model_rebuild(ReposOwnerRepoActionsVariablesPostBody) 25 | 26 | __all__ = ("ReposOwnerRepoActionsVariablesPostBody",) 27 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_1386.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody(GitHubModel): 18 | """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" 19 | 20 | body: str = Field(description="The body text of the pull request review.") 21 | 22 | 23 | model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody) 24 | 25 | __all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",) 26 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/types/group_0511.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing_extensions import TypedDict 13 | 14 | 15 | class TopicType(TypedDict): 16 | """Topic 17 | 18 | A topic aggregates entities that are related to a subject. 19 | """ 20 | 21 | names: list[str] 22 | 23 | 24 | class TopicTypeForResponse(TypedDict): 25 | """Topic 26 | 27 | A topic aggregates entities that are related to a subject. 28 | """ 29 | 30 | names: list[str] 31 | 32 | 33 | __all__ = ( 34 | "TopicType", 35 | "TopicTypeForResponse", 36 | ) 37 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0134.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class DependabotPublicKey(GitHubModel): 18 | """DependabotPublicKey 19 | 20 | The public key used for setting Dependabot Secrets. 21 | """ 22 | 23 | key_id: str = Field(description="The identifier for the key.") 24 | key: str = Field(description="The Base64 encoded public key.") 25 | 26 | 27 | model_rebuild(DependabotPublicKey) 28 | 29 | __all__ = ("DependabotPublicKey",) 30 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_0172.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing import Union 13 | 14 | from pydantic import Field 15 | 16 | from githubkit.compat import GitHubModel, model_rebuild 17 | 18 | 19 | class CodeOfConductSimple(GitHubModel): 20 | """Code Of Conduct Simple 21 | 22 | Code of Conduct Simple 23 | """ 24 | 25 | url: str = Field() 26 | key: str = Field() 27 | name: str = Field() 28 | html_url: Union[str, None] = Field() 29 | 30 | 31 | model_rebuild(CodeOfConductSimple) 32 | 33 | __all__ = ("CodeOfConductSimple",) 34 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_1139.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | from githubkit.typing import Missing 16 | from githubkit.utils import UNSET 17 | 18 | 19 | class ReposOwnerRepoDeploymentsPostResponse202(GitHubModel): 20 | """ReposOwnerRepoDeploymentsPostResponse202""" 21 | 22 | message: Missing[str] = Field(default=UNSET) 23 | 24 | 25 | model_rebuild(ReposOwnerRepoDeploymentsPostResponse202) 26 | 27 | __all__ = ("ReposOwnerRepoDeploymentsPostResponse202",) 28 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/models/group_1258.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing import Literal 13 | 14 | from pydantic import Field 15 | 16 | from githubkit.compat import GitHubModel, model_rebuild 17 | 18 | 19 | class UserEmailVisibilityPatchBody(GitHubModel): 20 | """UserEmailVisibilityPatchBody""" 21 | 22 | visibility: Literal["public", "private"] = Field( 23 | description="Denotes whether an email is publicly visible." 24 | ) 25 | 26 | 27 | model_rebuild(UserEmailVisibilityPatchBody) 28 | 29 | __all__ = ("UserEmailVisibilityPatchBody",) 30 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/types/group_0465.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing_extensions import TypedDict 13 | 14 | 15 | class SocialAccountType(TypedDict): 16 | """Social account 17 | 18 | Social media account 19 | """ 20 | 21 | provider: str 22 | url: str 23 | 24 | 25 | class SocialAccountTypeForResponse(TypedDict): 26 | """Social account 27 | 28 | Social media account 29 | """ 30 | 31 | provider: str 32 | url: str 33 | 34 | 35 | __all__ = ( 36 | "SocialAccountType", 37 | "SocialAccountTypeForResponse", 38 | ) 39 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/types/group_0891.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing_extensions import TypedDict 13 | 14 | 15 | class ApplicationsClientIdTokenPostBodyType(TypedDict): 16 | """ApplicationsClientIdTokenPostBody""" 17 | 18 | access_token: str 19 | 20 | 21 | class ApplicationsClientIdTokenPostBodyTypeForResponse(TypedDict): 22 | """ApplicationsClientIdTokenPostBody""" 23 | 24 | access_token: str 25 | 26 | 27 | __all__ = ( 28 | "ApplicationsClientIdTokenPostBodyType", 29 | "ApplicationsClientIdTokenPostBodyTypeForResponse", 30 | ) 31 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/types/group_1014.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing_extensions import TypedDict 13 | 14 | 15 | class OrgsOrgInteractionLimitsGetResponse200Anyof1Type(TypedDict): 16 | """OrgsOrgInteractionLimitsGetResponse200Anyof1""" 17 | 18 | 19 | class OrgsOrgInteractionLimitsGetResponse200Anyof1TypeForResponse(TypedDict): 20 | """OrgsOrgInteractionLimitsGetResponse200Anyof1""" 21 | 22 | 23 | __all__ = ( 24 | "OrgsOrgInteractionLimitsGetResponse200Anyof1Type", 25 | "OrgsOrgInteractionLimitsGetResponse200Anyof1TypeForResponse", 26 | ) 27 | -------------------------------------------------------------------------------- /githubkit/versions/v2022_11_28/types/group_1189.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from typing_extensions import TypedDict 13 | 14 | 15 | class ReposOwnerRepoMergeUpstreamPostBodyType(TypedDict): 16 | """ReposOwnerRepoMergeUpstreamPostBody""" 17 | 18 | branch: str 19 | 20 | 21 | class ReposOwnerRepoMergeUpstreamPostBodyTypeForResponse(TypedDict): 22 | """ReposOwnerRepoMergeUpstreamPostBody""" 23 | 24 | branch: str 25 | 26 | 27 | __all__ = ( 28 | "ReposOwnerRepoMergeUpstreamPostBodyType", 29 | "ReposOwnerRepoMergeUpstreamPostBodyTypeForResponse", 30 | ) 31 | -------------------------------------------------------------------------------- /githubkit/versions/ghec_v2022_11_28/models/group_0256.py: -------------------------------------------------------------------------------- 1 | """DO NOT EDIT THIS FILE! 2 | 3 | This file is automatically @generated by githubkit using the follow command: 4 | 5 | bash ./scripts/run-codegen.sh 6 | 7 | See https://github.com/github/rest-api-description for more information. 8 | """ 9 | 10 | from __future__ import annotations 11 | 12 | from pydantic import Field 13 | 14 | from githubkit.compat import GitHubModel, model_rebuild 15 | 16 | 17 | class DependabotPublicKey(GitHubModel): 18 | """DependabotPublicKey 19 | 20 | The public key used for setting Dependabot Secrets. 21 | """ 22 | 23 | key_id: str = Field(description="The identifier for the key.") 24 | key: str = Field(description="The Base64 encoded public key.") 25 | 26 | 27 | model_rebuild(DependabotPublicKey) 28 | 29 | __all__ = ("DependabotPublicKey",) 30 | --------------------------------------------------------------------------------